WordPress.org

Make WordPress Core

Ticket #19882: 19882.diff

File 19882.diff, 525 bytes (added by scribu, 6 years ago)
  • wp-includes/post.php

    diff --git wp-includes/post.php wp-includes/post.php
    index b8c229a..468f34b 100644
    function delete_post_meta($post_id, $meta_key, $meta_value = '') { 
    14621462 * @return mixed Will be an array if $single is false. Will be value of meta data field if $single
    14631463 *  is true.
    14641464 */
    1465 function get_post_meta($post_id, $key, $single = false) {
     1465function get_post_meta($post_id, $key = '', $single = false) {
    14661466        return get_metadata('post', $post_id, $key, $single);
    14671467}
    14681468