mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-27 14:53:08 +02:00
Docs: Add variadic markers to the optional $object_id
parameter notation for WP_User::has_cap()
.
See #32246. Built from https://develop.svn.wordpress.org/trunk@35954 git-svn-id: http://core.svn.wordpress.org/trunk@35918 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c69481a410
commit
2dda796547
@ -701,12 +701,12 @@ class WP_User {
|
|||||||
*
|
*
|
||||||
* @see map_meta_cap()
|
* @see map_meta_cap()
|
||||||
*
|
*
|
||||||
* @param string $cap Capability name.
|
* @param string $cap Capability name.
|
||||||
* @param int $object_id Optional. ID of the specific object to check against if `$cap` is a "meta" cap.
|
* @param int $object_id,... Optional. ID of the specific object to check against if `$cap` is a "meta" cap.
|
||||||
* "Meta" capabilities, e.g. 'edit_post', 'edit_user', etc., are capabilities used
|
* "Meta" capabilities, e.g. 'edit_post', 'edit_user', etc., are capabilities used
|
||||||
* by map_meta_cap() to map to other "primitive" capabilities, e.g. 'edit_posts',
|
* by map_meta_cap() to map to other "primitive" capabilities, e.g. 'edit_posts',
|
||||||
* 'edit_others_posts', etc. The parameter is accessed via func_get_args() and passed
|
* 'edit_others_posts', etc. The parameter is accessed via func_get_args() and passed
|
||||||
* to map_meta_cap().
|
* to map_meta_cap().
|
||||||
* @return bool Whether the current user has the given capability. If `$cap` is a meta cap and `$object_id` is
|
* @return bool Whether the current user has the given capability. If `$cap` is a meta cap and `$object_id` is
|
||||||
* passed, whether the current user has the given meta capability for the given object.
|
* passed, whether the current user has the given meta capability for the given object.
|
||||||
*/
|
*/
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5-alpha-35953';
|
$wp_version = '4.5-alpha-35954';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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