Ticket #24162: 24162.2.diff
File 24162.2.diff, 802 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 ( ! $post = get_post( $post_id ) ) 85 return array(); 86 87 $post_id = $post->ID; 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 /**