Make WordPress Core


Ignore:
Timestamp:
04/14/2013 01:11:44 AM (12 years ago)
Author:
markjaquith
Message:

Only remove ONE piece of media from the content in setup_postdata().

props wonderboymusic. fixes #24052.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r23899 r23984  
    37033703            break;
    37043704        case 'audio':
    3705             get_the_post_format_media( 'audio', $post );
     3705            get_the_post_format_media( 'audio', $post, 1 );
    37063706            if ( isset( $post->split_content ) )
    37073707                $split_content = $post->split_content;
    37083708            break;
    37093709        case 'video':
    3710             get_the_post_format_media( 'video', $post );
     3710            get_the_post_format_media( 'video', $post, 1 );
    37113711            if ( isset( $post->split_content ) )
    37123712                $split_content = $post->split_content;
Note: See TracChangeset for help on using the changeset viewer.