Changeset 3469
- Timestamp:
- 06/19/2016 12:27:19 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php
r3467 r3469 176 176 // Give committers a role on this site. 177 177 foreach ( Tools::get_plugin_committers( $plugin_slug ) as $committer ) { 178 $user = get_user_by( ' slug', $committer );179 180 if ( ! user_can( $user, 'plugin_dashboard_access' ) ) {178 $user = get_user_by( 'login', $committer ); 179 180 if ( $user && ! user_can( $user, 'plugin_dashboard_access' ) ) { 181 181 $user->add_role( 'plugin_committer' ); 182 182 } … … 189 189 // Finally, set the new version live. 190 190 update_post_meta( $plugin->ID, 'stable_tag', $stable_tag ); 191 192 // Update Jetpack Search 193 \Jetpack::$instance->sync->register_post( $plugin->ID ); 191 194 } 192 195
Note: See TracChangeset
for help on using the changeset viewer.