Ticket #24162: post-meta-values-post-id.diff
File post-meta-values-post-id.diff, 786 bytes (added by , 12 years ago) |
---|
-
wp-includes/post-formats.php
81 81 * @return array The array of post format metadata. 82 82 */ 83 83 function get_post_format_meta( $post_id = 0 ) { 84 if ( empty( $post_id ) ) { 85 global $post; 86 $post_id = $post->ID; 87 } 84 88 $meta = get_post_meta( $post_id ); 85 89 $keys = array( 'quote', 'quote_source_name', 'quote_source_url', 'link_url', 'gallery', 'audio_embed', 'video_embed', 'url', 'image' ); 86 90 … … 120 124 $values[$key] = empty( $value ) ? '' : $value; 121 125 } 122 126 123 return apply_filters( 'post_format_meta', $values );127 return apply_filters( 'post_format_meta', $values, $post_id ); 124 128 } 125 129 126 130 /**