Post Formats: use the content body for the body of the Quote post format.
* Searchable, better editing tools * Less cluttered Post Format UI props kovshenin, DrewAPicture. see #24009 git-svn-id: http://core.svn.wordpress.org/trunk@24034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -3694,7 +3694,7 @@ function setup_postdata($post) {
|
||||
$more = 1;
|
||||
$split_content = $content = $post->post_content;
|
||||
$format = get_post_format( $post );
|
||||
if ( $format && in_array( $format, array( 'image', 'audio', 'video' ) ) ) {
|
||||
if ( $format && in_array( $format, array( 'image', 'audio', 'video', 'quote' ) ) ) {
|
||||
switch ( $format ) {
|
||||
case 'image':
|
||||
get_the_post_format_image( 'full', $post );
|
||||
@@ -3711,6 +3711,11 @@ function setup_postdata($post) {
|
||||
if ( isset( $post->split_content ) )
|
||||
$split_content = $post->split_content;
|
||||
break;
|
||||
case 'quote':
|
||||
get_the_post_format_quote( $post );
|
||||
if ( isset( $post->split_content ) )
|
||||
$split_content = $post->split_content;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user