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: https://develop.svn.wordpress.org/trunk@24034 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2013-04-18 18:07:58 +00:00
parent 8608bae9bc
commit 58ad769e8b
5 changed files with 89 additions and 16 deletions
+6 -1
View File
@@ -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;
}
}