From 4705c9664842210841fa0a3e805e2f1ae142d0c0 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 30 Apr 2013 23:48:18 +0000 Subject: [PATCH] Make $post_id argument optional for _post_formats_title(). props kovshenin. fixes #24233. see #24011. git-svn-id: http://core.svn.wordpress.org/trunk@24146 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-formats.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/post-formats.php b/wp-includes/post-formats.php index e8b92ba0e9..f5f03b4c5a 100644 --- a/wp-includes/post-formats.php +++ b/wp-includes/post-formats.php @@ -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.