Make $post_id argument optional for _post_formats_title(). props kovshenin. fixes #24233. see #24011.
git-svn-id: https://develop.svn.wordpress.org/trunk@24146 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7a0b1226ab
commit
ea9c768d80
|
@ -949,8 +949,8 @@ function the_remaining_content( $more_link_text = null, $strip_teaser = false )
|
|||
* @since 3.6.0
|
||||
* @access private
|
||||
*/
|
||||
function _post_formats_title( $title, $post_id ) {
|
||||
if ( is_admin() || is_feed() || ! in_array( get_post_format( $post_id ), array( 'aside', 'status' ) ) )
|
||||
function _post_formats_title( $title, $post_id = 0 ) {
|
||||
if ( ! $post_id || is_admin() || is_feed() || ! in_array( get_post_format( $post_id ), array( 'aside', 'status' ) ) )
|
||||
return $title;
|
||||
|
||||
// Return an empty string only if the title is auto-generated.
|
||||
|
|
Loading…
Reference in New Issue