Make WordPress Core

Ticket #23955: 23955.4.diff

File 23955.4.diff, 503 bytes (added by obenland, 11 years ago)

Make sure to only alter the width on the frontend.

  • wp-content/themes/twentythirteen/functions.php

     
    547547 * @return array Filtered attribute list.
    548548 */
    549549function twentythirteen_video_width( $atts ) {
    550         if ( has_post_format( 'video' ) )
     550        if ( has_post_format( 'video' ) )
    551551                $atts['width'] = 724;
    552552
    553553        return $atts;