WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/11/2012 01:38:26 AM (7 years ago)
Author:
nacin
Message:

Remove 'hwstring_small' from attachment metadata and deprecate get_udims(). props SergeyBiryukov. fixes #21518.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/image-edit.php

    r20384 r21808  
    415415        $meta['width'] = $data['width'];
    416416        $meta['height'] = $data['height'];
    417         list ( $uwidth, $uheight ) = wp_constrain_dimensions($meta['width'], $meta['height'], 128, 96);
    418         $meta['hwstring_small'] = "height='$uheight' width='$uwidth'";
    419417    }
    420418
     
    560558        $meta['height'] = imagesy($img);
    561559
    562         list ( $uwidth, $uheight ) = wp_constrain_dimensions($meta['width'], $meta['height'], 128, 96);
    563         $meta['hwstring_small'] = "height='$uheight' width='$uwidth'";
    564 
    565560        if ( $success && ('nothumb' == $target || 'all' == $target) ) {
    566561            $sizes = get_intermediate_image_sizes();
Note: See TracChangeset for help on using the changeset viewer.