Making WordPress.org


Ignore:
Timestamp:
10/11/2016 06:27:26 AM (8 years ago)
Author:
dd32
Message:

Plugin Directory: Remove wp-admin access and a bunch of code that's no longer needed.

See #2111.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php

    r4197 r4212  
    182182        }
    183183        update_post_meta( $plugin->ID, 'assets_banners_color', wp_slash( $banner_average_color ) );
    184 
    185         // Give committers a role on this site.
    186         foreach ( Tools::get_plugin_committers( $plugin_slug ) as $committer ) {
    187             $user = get_user_by( 'login', $committer );
    188 
    189             if ( $user && ! user_can( $user, 'plugin_dashboard_access' ) ) {
    190                 $user->add_role( 'plugin_committer' );
    191             }
    192         }
    193184
    194185        $current_stable_tag = get_post_meta( $plugin->ID, 'stable_tag', true );
Note: See TracChangeset for help on using the changeset viewer.