From 6a6c0fb5220e0b90d0972ba1b0f59652d802ac0b Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Thu, 25 Apr 2013 08:02:38 +0000 Subject: [PATCH] Prevent a PHP Warning for $post_format. props MZAWeb, kovshenin. see #24011. git-svn-id: https://develop.svn.wordpress.org/trunk@24094 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post-formats.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/post-formats.php b/wp-includes/post-formats.php index d7ddaa9064..3bb380a612 100644 --- a/wp-includes/post-formats.php +++ b/wp-includes/post-formats.php @@ -992,6 +992,7 @@ function _post_formats_fix_empty_title( $data, $postarr ) { return $data; $post_id = ( isset( $postarr['ID'] ) ) ? absint( $postarr['ID'] ) : 0; + $post_format = ''; if ( $post_id ) $post_format = get_post_format( $post_id );