Changeset 7415
- Timestamp:
- 07/10/2018 10:58:38 PM (6 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-committers.php
r6287 r7415 59 59 } 60 60 61 if ( ! empty( $committer->allcaps['bbp_blocked'] ) ) { 62 $response->add( array( 63 'what' => 'committer', 64 'data' => new \WP_Error( 'error', sprintf( __( 'The user %s is banned/blocked.', 'wporg-plugins' ), '<code>' . $login . '</code>' ) ), 65 ) ); 66 $response->send(); 67 } 68 61 69 $result = Tools::grant_plugin_committer( $post->post_name, $committer ); 62 70 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin-committers.php
r6287 r7415 108 108 } 109 109 110 if ( ! empty( $user->allcaps['bbp_blocked'] ) ) { 111 return new WP_Error( 'plugin_user_banned', __( 'User is blocked/banned and cannot be granted commmit.', 'wporg-plugins' ) ); 112 } 113 110 114 $plugin_slug = $request['plugin_slug']; 111 115
Note: See TracChangeset
for help on using the changeset viewer.