Make WordPress Core

Changeset 13140


Ignore:
Timestamp:
02/14/2010 06:34:47 AM (17 years ago)
Author:
markjaquith
Message:

Revert r13103 and merely restrict \$content_width obeying to is_admin(). fixes #12146

File:
1 edited

Legend:

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

    r13103 r13140  
    6565                $max_width = intval( $_wp_additional_image_sizes[$size]['width'] );
    6666                $max_height = intval( $_wp_additional_image_sizes[$size]['height'] );
     67                if ( intval($content_width) > 0 && is_admin() ) // Only in admin. Assume that theme authors know what they're doing.
     68                        $max_width = min( intval($content_width), $max_width );
    6769        }
    6870        // $size == 'full' has no constraint
Note: See TracChangeset for help on using the changeset viewer.