mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 15:17:42 +02:00
Docs: Remove an unrelated description about post meta from the DocBlock for add_user_meta().
Clean up syntax. See #41017. Built from https://develop.svn.wordpress.org/trunk@41186 git-svn-id: http://core.svn.wordpress.org/trunk@41026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a6e0b16749
commit
7f5e00ba29
@ -756,17 +756,14 @@ function is_user_member_of_blog( $user_id = 0, $blog_id = 0 ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add meta data field to a user.
|
* Adds meta data to a user.
|
||||||
*
|
|
||||||
* Post meta data is called "Custom Fields" on the Administration Screens.
|
|
||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
* @link https://codex.wordpress.org/Function_Reference/add_user_meta
|
|
||||||
*
|
*
|
||||||
* @param int $user_id User ID.
|
* @param int $user_id User ID.
|
||||||
* @param string $meta_key Metadata name.
|
* @param string $meta_key Metadata name.
|
||||||
* @param mixed $meta_value Metadata value.
|
* @param mixed $meta_value Metadata value.
|
||||||
* @param bool $unique Optional, default is false. Whether the same key should not be added.
|
* @param bool $unique Optional. Whether the same key should not be added. Default false.
|
||||||
* @return int|false Meta ID on success, false on failure.
|
* @return int|false Meta ID on success, false on failure.
|
||||||
*/
|
*/
|
||||||
function add_user_meta($user_id, $meta_key, $meta_value, $unique = false) {
|
function add_user_meta($user_id, $meta_key, $meta_value, $unique = false) {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-alpha-41185';
|
$wp_version = '4.9-alpha-41186';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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