Changeset 45590 for trunk/src/wp-includes/capabilities.php
- Timestamp:
- 07/02/2019 11:41:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r45507 r45590 728 728 */ 729 729 function author_can( $post, $capability ) { 730 if ( ! $post = get_post( $post ) ) { 730 $post = get_post( $post ); 731 if ( ! $post ) { 731 732 return false; 732 733 } … … 967 968 $user = get_userdata( $user_id ); 968 969 if ( $user && 0 !== strcasecmp( $user->user_email, get_site_option( 'admin_email' ) ) ) { 969 if ( false !== ( $key = array_search( $user->user_login, $super_admins ) ) ) { 970 $key = array_search( $user->user_login, $super_admins ); 971 if ( false !== $key ) { 970 972 unset( $super_admins[ $key ] ); 971 973 update_site_option( 'site_admins', $super_admins );
Note: See TracChangeset
for help on using the changeset viewer.