Ticket #23974: 23974.patch
File 23974.patch, 1.5 KB (added by , 11 years ago) |
---|
-
wp-includes/post-formats.php
38 38 * @uses has_term() 39 39 * 40 40 * @param string $format The format to check for 41 * @param object|i d$post The post to check. If not supplied, defaults to the current post if used in the loop.41 * @param object|int $post The post to check. If not supplied, defaults to the current post if used in the loop. 42 42 * @return bool True if the post has the format, false otherwise. 43 43 */ 44 44 function has_post_format( $format, $post = null ) { … … 77 77 * @since 3.6.0 78 78 * 79 79 * @param int $post_id 80 * @return null80 * @return array The array of post format metadata 81 81 */ 82 82 function get_post_format_meta( $post_id = 0 ) { 83 83 $values = array( … … 260 260 * @since 3.6.0 261 261 * 262 262 * @param string $format 263 * @return string Filtered post format content class 263 264 */ 264 265 function get_post_format_content_class( $format ) { 265 266 return apply_filters( 'post_format_content_class', 'post-format-content', $format ); 266 267 } 267 268 268 269 /** 269 * Ou put the class for a post format content wrapper270 * Output the class for a post format content wrapper 270 271 * 271 272 * @since 3.6.0 272 273 * … … 282 283 * @since 3.6.0 283 284 * 284 285 * @param string $content 286 * @param int $id 287 * @return string Formatted output based on associated post format 285 288 */ 286 289 function post_formats_compat( $content, $id = 0 ) { 287 290 $post = empty( $id ) ? get_post() : get_post( $id );