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:
Drew Jaynes 2014-07-02 03:30:14 +00:00
parent 81103f482a
commit 6dd339f215
1 changed files with 6 additions and 5 deletions

View File

@ -1811,11 +1811,12 @@ function delete_post_meta($post_id, $meta_key, $meta_value = '') {
* @since 1.5.0 * @since 1.5.0
* @link http://codex.wordpress.org/Function_Reference/get_post_meta * @link http://codex.wordpress.org/Function_Reference/get_post_meta
* *
* @param int $post_id Post ID. * @param int $post_id Post ID.
* @param string $key Optional. The meta key to retrieve. By default, returns data for all keys. * @param string $key Optional. The meta key to retrieve. By default, returns
* @param bool $single Optional. Whether to return a single value. * data for all keys.
* @return mixed Will be an array if $single is false. Will be value of meta data field if $single * @param bool $single Optional. Whether to return a single value. Default false.
* is true. * @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) { function get_post_meta($post_id, $key = '', $single = false) {
return get_metadata('post', $post_id, $key, $single); return get_metadata('post', $post_id, $key, $single);