Prevent a PHP Warning for $post_format.
props MZAWeb, kovshenin. see #24011. git-svn-id: http://core.svn.wordpress.org/trunk@24094 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e2fbad7ee0
commit
644e5b7bd6
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue