Make WordPress Core

Changeset 43022


Ignore:
Timestamp:
04/29/2018 09:13:49 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing verb in is_admin(), is_blog_admin(), is_network_admin(), is_user_admin() descriptions.

See #42505.

File:
1 edited

Legend:

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

    r42988 r43022  
    770770 * Determines whether the current request is for an administrative interface page.
    771771 *
    772  * Does not check if the user is an administrator; current_user_can()
     772 * Does not check if the user is an administrator; use current_user_can()
    773773 * for checking roles and capabilities.
    774774 *
     
    798798 * e.g. `/wp-admin/`
    799799 *
    800  * Does not check if the user is an administrator; current_user_can()
     800 * Does not check if the user is an administrator; use current_user_can()
    801801 * for checking roles and capabilities.
    802802 *
     
    822822 * e.g. `/wp-admin/network/`
    823823 *
    824  * Does not check if the user is an administrator; current_user_can()
     824 * Does not check if the user is an administrator; use current_user_can()
    825825 * for checking roles and capabilities.
    826826 *
     
    846846 * e.g. `/wp-admin/user/`
    847847 *
    848  * Does not inform on whether the user is an admin! Use capability
    849  * checks to tell if the user should be accessing a section or not
    850  * current_user_can().
     848 * Does not check if the user is an administrator; use current_user_can()
     849 * for checking roles and capabilities.
    851850 *
    852851 * @since 3.1.0
Note: See TracChangeset for help on using the changeset viewer.