Changeset 4212 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php
- Timestamp:
- 10/11/2016 06:27:26 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php
r4197 r4212 182 182 } 183 183 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 }193 184 194 185 $current_stable_tag = get_post_meta( $plugin->ID, 'stable_tag', true );
Note: See TracChangeset
for help on using the changeset viewer.