Make WordPress Core


Ignore:
Timestamp:
07/02/2014 03:29:33 AM (11 years ago)
Author:
DrewAPicture
Message:

Specify the $single parameter default for get_post_meta(). Docs spacing.

See #28708.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r28954 r28955  
    18121812 * @link http://codex.wordpress.org/Function_Reference/get_post_meta
    18131813 *
    1814  * @param int $post_id Post ID.
    1815  * @param string $key Optional. The meta key to retrieve. By default, returns data for all keys.
    1816  * @param bool $single Optional. Whether to return a single value.
    1817  * @return mixed Will be an array if $single is false. Will be value of meta data field if $single
    1818  *  is true.
     1814 * @param int    $post_id Post ID.
     1815 * @param string $key     Optional. The meta key to retrieve. By default, returns
     1816 *                        data for all keys.
     1817 * @param bool   $single  Optional. Whether to return a single value. Default false.
     1818 * @return mixed Will be an array if $single is false. Will be value of meta data
     1819 *               field if $single is true.
    18191820 */
    18201821function get_post_meta($post_id, $key = '', $single = false) {
Note: See TracChangeset for help on using the changeset viewer.