Make WordPress Core

Ticket #34736: 34736.patch

File 34736.patch, 1.0 KB (added by kraftbj, 8 years ago)

Initial patch to add a size array to the sources array.

  • src/wp-includes/media.php

     
    10651065                                'url'        => $image_baseurl . $image['file'],
    10661066                                'descriptor' => 'w',
    10671067                                'value'      => $image['width'],
     1068                                'size'       => array(
     1069                                        'width'  => $image['width'],
     1070                                        'height' => $image['height'],
     1071                                        ),
    10681072                        );
    10691073                }
    10701074        }
     
    10831087         *                                        either 'w' or 'x'.
    10841088         *          @type type int    $value      The source width, if paired with a 'w' descriptor or a
    10851089         *                                        pixel density value if paired with an 'x' descriptor.
     1090         *          @type type array  $sizes {
     1091         *                @type int $width  Width of the source image.
     1092         *                @type int $height Height of the source image.
     1093         *                }
    10861094         *     }
    10871095         * }
    10881096         * @param array  $size_array    Array of width and height values in pixels (in that order).