WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (22 months ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/capabilities.php

    r46685 r47122  
    5454        case 'edit_user':
    5555        case 'edit_users':
    56             // Allow user to edit itself
     56            // Allow user to edit themselves.
    5757            if ( 'edit_user' == $cap && isset( $args[0] ) && $user_id == $args[0] ) {
    5858                break;
     
    138138            break;
    139139        // edit_post breaks down to edit_posts, edit_published_posts, or
    140         // edit_others_posts
     140        // edit_others_posts.
    141141        case 'edit_post':
    142142        case 'edit_page':
     
    911911    do_action( 'grant_super_admin', $user_id );
    912912
    913     // Directly fetch site_admins instead of using get_super_admins()
     913    // Directly fetch site_admins instead of using get_super_admins().
    914914    $super_admins = get_site_option( 'site_admins', array( 'admin' ) );
    915915
     
    958958    do_action( 'revoke_super_admin', $user_id );
    959959
    960     // Directly fetch site_admins instead of using get_super_admins()
     960    // Directly fetch site_admins instead of using get_super_admins().
    961961    $super_admins = get_site_option( 'site_admins', array( 'admin' ) );
    962962
Note: See TracChangeset for help on using the changeset viewer.