mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Docs: Correct the phpDoc type to a boolean for the $single
parameter in the get_{$meta_type}_metadata
hook docs.
Props dlh. Fixes #33451. Built from https://develop.svn.wordpress.org/trunk@33665 git-svn-id: http://core.svn.wordpress.org/trunk@33632 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bec5bcf717
commit
a7b38bf90a
@ -475,12 +475,11 @@ function get_metadata($meta_type, $object_id, $meta_key = '', $single = false) {
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @param null|array|string $value The value get_metadata() should
|
||||
* return - a single metadata value,
|
||||
* @param null|array|string $value The value get_metadata() should return - a single metadata value,
|
||||
* or an array of values.
|
||||
* @param int $object_id Object ID.
|
||||
* @param string $meta_key Meta key.
|
||||
* @param string|array $single Meta value, or an array of values.
|
||||
* @param bool $single Whether to return only the first value of the specified $meta_key.
|
||||
*/
|
||||
$check = apply_filters( "get_{$meta_type}_metadata", null, $object_id, $meta_key, $single );
|
||||
if ( null !== $check ) {
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-33664';
|
||||
$wp_version = '4.4-alpha-33665';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user