mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Docs: Add missing verb in is_admin()
, is_blog_admin()
, is_network_admin()
, is_user_admin()
descriptions.
See #42505. Built from https://develop.svn.wordpress.org/trunk@43022 git-svn-id: http://core.svn.wordpress.org/trunk@42851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e663af477a
commit
9a8f48c9bc
@ -769,7 +769,7 @@ function wp_clone( $object ) {
|
|||||||
/**
|
/**
|
||||||
* Determines whether the current request is for an administrative interface page.
|
* Determines whether the current request is for an administrative interface page.
|
||||||
*
|
*
|
||||||
* Does not check if the user is an administrator; current_user_can()
|
* Does not check if the user is an administrator; use current_user_can()
|
||||||
* for checking roles and capabilities.
|
* for checking roles and capabilities.
|
||||||
*
|
*
|
||||||
* For more information on this and similar theme functions, check out
|
* For more information on this and similar theme functions, check out
|
||||||
@ -797,7 +797,7 @@ function is_admin() {
|
|||||||
*
|
*
|
||||||
* e.g. `/wp-admin/`
|
* e.g. `/wp-admin/`
|
||||||
*
|
*
|
||||||
* Does not check if the user is an administrator; current_user_can()
|
* Does not check if the user is an administrator; use current_user_can()
|
||||||
* for checking roles and capabilities.
|
* for checking roles and capabilities.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
@ -821,7 +821,7 @@ function is_blog_admin() {
|
|||||||
*
|
*
|
||||||
* e.g. `/wp-admin/network/`
|
* e.g. `/wp-admin/network/`
|
||||||
*
|
*
|
||||||
* Does not check if the user is an administrator; current_user_can()
|
* Does not check if the user is an administrator; use current_user_can()
|
||||||
* for checking roles and capabilities.
|
* for checking roles and capabilities.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
@ -845,9 +845,8 @@ function is_network_admin() {
|
|||||||
*
|
*
|
||||||
* e.g. `/wp-admin/user/`
|
* e.g. `/wp-admin/user/`
|
||||||
*
|
*
|
||||||
* Does not inform on whether the user is an admin! Use capability
|
* Does not check if the user is an administrator; use current_user_can()
|
||||||
* checks to tell if the user should be accessing a section or not
|
* for checking roles and capabilities.
|
||||||
* current_user_can().
|
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
*
|
*
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.0-alpha-43021';
|
$wp_version = '5.0-alpha-43022';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user