Make WordPress Core

Ticket #36088: 36088.patch

File 36088.patch, 1.1 KB (added by sebastian.pisula, 10 years ago)
  • wp-includes/post.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    18261826 *               field if $single is true.
    18271827 */
    18281828function get_post_meta( $post_id, $key = '', $single = false ) {
    1829         return get_metadata('post', $post_id, $key, $single);
     1829        /**
     1830         * Filter the meta value.
     1831         *
     1832         * @since 4.5.0
     1833         *
     1834         * @param mixed  $value   Value of the post meta value.
     1835         * @param int    $post_id Post ID.
     1836         * @param string $key     The meta key to retrieve. By default, returns
     1837         *                        data for all keys.
     1838         * @param bool   $single  Whether to return a single value.
     1839         * @return mixed Will be an array if $single is false. Will be value of meta data
     1840         *               field if $single is true.
     1841         */
     1842        return apply_filters( 'post_meta', get_metadata( 'post', $post_id, $key, $single ), $post_id, $key, $single );
    18301843}
    18311844
    18321845/**