Making WordPress.org


Ignore:
Timestamp:
12/17/2015 12:32:48 PM (9 years ago)
Author:
ocean90
Message:

Rosetta: Update roles plugin to use the new translation_editors table.

  • Introduce a new role for General Translation Editors.
  • Introduce a new capability to manage Translation Editors, assigned to General Translation Editors.
  • Fix wrong action name for bulk removal.
  • Remove custom "Role" column, obsolete with WordPress 4.4.
  • Introduce translation_editor_added, translation_editor_updated and translation_editor_removed actions.
  • Make "Translation Editors" a top-level menu.
  • Add views to the "Translation Editors" table.

See #1240.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles/views/translation-editors.php

    r1942 r2197  
    1717    </form>
    1818
     19    <?php $list_table->views(); ?>
     20
    1921    <form method="post">
    2022        <?php $list_table->display(); ?>
    2123    </form>
    2224
    23     <?php if ( current_user_can( 'promote_users' ) ) : ?>
     25    <?php if ( current_user_can( Rosetta_Roles::MANAGE_TRANSLATION_EDITORS_CAP ) ) : ?>
    2426        <h3><?php _e( 'Add Translation Editor', 'rosetta' ); ?></h3>
    2527        <p><?php _e( 'Enter the email address or username of an existing user on wordpress.org.', 'rosetta' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.