Specify the `$single` parameter default for `get_post_meta()`. Docs spacing.
See #28708. Built from https://develop.svn.wordpress.org/trunk@28955 git-svn-id: http://core.svn.wordpress.org/trunk@28751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
81103f482a
commit
6dd339f215
|
@ -1812,10 +1812,11 @@ function delete_post_meta($post_id, $meta_key, $meta_value = '') {
|
|||
* @link http://codex.wordpress.org/Function_Reference/get_post_meta
|
||||
*
|
||||
* @param int $post_id Post ID.
|
||||
* @param string $key Optional. The meta key to retrieve. By default, returns data for all keys.
|
||||
* @param bool $single Optional. Whether to return a single value.
|
||||
* @return mixed Will be an array if $single is false. Will be value of meta data field if $single
|
||||
* is true.
|
||||
* @param string $key Optional. The meta key to retrieve. By default, returns
|
||||
* data for all keys.
|
||||
* @param bool $single Optional. Whether to return a single value. Default false.
|
||||
* @return mixed Will be an array if $single is false. Will be value of meta data
|
||||
* field if $single is true.
|
||||
*/
|
||||
function get_post_meta($post_id, $key = '', $single = false) {
|
||||
return get_metadata('post', $post_id, $key, $single);
|
||||
|
|
Loading…
Reference in New Issue