Ticket #24011: 24011.9.diff
| File 24011.9.diff, 683 bytes (added by , 13 years ago) |
|---|
-
wp-includes/post-formats.php
949 949 * @since 3.6.0 950 950 * @access private 951 951 */ 952 function _post_formats_title( $title, $post_id ) {953 if ( is_admin() || is_feed() || ! in_array( get_post_format( $post_id ), array( 'aside', 'status' ) ) )952 function _post_formats_title( $title, $post_id = 0 ) { 953 if ( ! $post_id || is_admin() || is_feed() || ! in_array( get_post_format( $post_id ), array( 'aside', 'status' ) ) ) 954 954 return $title; 955 955 956 956 // Return an empty string only if the title is auto-generated.