Make WordPress Core

Changeset 12875


Ignore:
Timestamp:
01/27/2010 02:38:48 PM (17 years ago)
Author:
ryan
Message:

Respect maximum embed height. Props Viper007Bond. fixes #11980

File:
1 edited

Legend:

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

    r12823 r12875  
    12461246        $width = get_option('embed_size_w');
    12471247
    1248         if ( !$width && !empty($theme_width) )
     1248        if ( empty($width) && !empty($theme_width) )
    12491249                $width = $theme_width;
    12501250
    1251         if ( !$width )
     1251        if ( empty($width) )
    12521252                $width = 500;
    12531253
     1254        $height = get_option('embed_size_h');
     1255
     1256        if ( empty($height) )
     1257                $height = 700;
     1258
    12541259        return apply_filters( 'embed_defaults', array(
    1255                 'width' => $width,
    1256                 'height' => 700,
     1260                'width'  => $width,
     1261                'height' => $height,
    12571262        ) );
    12581263}
Note: See TracChangeset for help on using the changeset viewer.