Make WordPress Core

Ticket #33768: 33768.patch

File 33768.patch, 643 bytes (added by SteveHoneyNZ, 10 years ago)
  • wp-includes/media.php

     
    28452845                        $sizes['full']['width'] = $meta['width'];
    28462846                        $sizes['full']['orientation'] = $meta['height'] > $meta['width'] ? 'portrait' : 'landscape';
    28472847                }
     2848               
     2849                               
     2850        // Include the image_meta array in $response
     2851                if ( isset( $meta['image_meta'] ) ) {
     2852                        $response['meta'] = $meta['image_meta'];
     2853                }
    28482854
    28492855                $response = array_merge( $response, array( 'sizes' => $sizes ), $sizes['full'] );
    28502856        } elseif ( $meta && 'video' === $type ) {