WordPress.org

Making WordPress.org

Changeset 6373


Ignore:
Timestamp:
01/12/2018 06:21:59 PM (4 years ago)
Author:
obenland
Message:

WordPress.tv: Bring back full-width videos.

Props juanfra for initial patch.
Fixes #1293.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php

    r6372 r6373  
    492492                }
    493493
    494                 $video      = sprintf( '[%s %s w="605" %s]', $shortcode[2], trim( $shortcode[3] ), $hd_param );
     494                $video      = sprintf( '[%s %s w="%s" %s]', $shortcode[2], trim( $shortcode[3] ), is_single() ? '940' : '605', $hd_param );
    495495                $video      = apply_filters( 'the_content', $video );
    496496            }
Note: See TracChangeset for help on using the changeset viewer.