WordPress.org

Make WordPress Core

Ticket #24011: 24011.9.diff

File 24011.9.diff, 683 bytes (added by kovshenin, 2 years ago)
  • wp-includes/post-formats.php

     
    949949 * @since 3.6.0 
    950950 * @access private 
    951951 */ 
    952 function _post_formats_title( $title, $post_id ) { 
    953         if ( is_admin() || is_feed() || ! in_array( get_post_format( $post_id ), array( 'aside', 'status' ) ) ) 
     952function _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' ) ) ) 
    954954                return $title; 
    955955 
    956956        // Return an empty string only if the title is auto-generated.