mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Media: Update fallback previews to support _wp_make_subsizes()
Allows fallback previews (PDF by default, in core) to save image meta after each size is generated to allow for resuming, and make sizes immediately available. Props azaozz, antpb, progremzion, mikeschroder. See #48111. git-svn-id: https://develop.svn.wordpress.org/trunk@46459 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -435,10 +435,10 @@ class Tests_Image_Functions extends WP_UnitTestCase {
|
||||
|
||||
$expected = array(
|
||||
'sizes' => array(
|
||||
'thumbnail' => array(
|
||||
'file' => 'wordpress-gsoc-flyer-pdf-116x150.jpg',
|
||||
'width' => 116,
|
||||
'height' => 150,
|
||||
'full' => array(
|
||||
'file' => 'wordpress-gsoc-flyer-pdf.jpg',
|
||||
'width' => 1088,
|
||||
'height' => 1408,
|
||||
'mime-type' => 'image/jpeg',
|
||||
),
|
||||
'medium' => array(
|
||||
@@ -453,10 +453,10 @@ class Tests_Image_Functions extends WP_UnitTestCase {
|
||||
'height' => 1024,
|
||||
'mime-type' => 'image/jpeg',
|
||||
),
|
||||
'full' => array(
|
||||
'file' => 'wordpress-gsoc-flyer-pdf.jpg',
|
||||
'width' => 1088,
|
||||
'height' => 1408,
|
||||
'thumbnail' => array(
|
||||
'file' => 'wordpress-gsoc-flyer-pdf-116x150.jpg',
|
||||
'width' => 116,
|
||||
'height' => 150,
|
||||
'mime-type' => 'image/jpeg',
|
||||
),
|
||||
),
|
||||
@@ -500,10 +500,10 @@ class Tests_Image_Functions extends WP_UnitTestCase {
|
||||
|
||||
$expected = array(
|
||||
'sizes' => array(
|
||||
'thumbnail' => array(
|
||||
'file' => 'wordpress-gsoc-flyer-pdf-116x150.jpg',
|
||||
'width' => 116,
|
||||
'height' => 150,
|
||||
'full' => array(
|
||||
'file' => 'wordpress-gsoc-flyer-pdf.jpg',
|
||||
'width' => 1088,
|
||||
'height' => 1408,
|
||||
'mime-type' => 'image/jpeg',
|
||||
),
|
||||
'medium' => array(
|
||||
@@ -518,10 +518,10 @@ class Tests_Image_Functions extends WP_UnitTestCase {
|
||||
'height' => 1024,
|
||||
'mime-type' => 'image/jpeg',
|
||||
),
|
||||
'full' => array(
|
||||
'file' => 'wordpress-gsoc-flyer-pdf.jpg',
|
||||
'width' => 1088,
|
||||
'height' => 1408,
|
||||
'thumbnail' => array(
|
||||
'file' => 'wordpress-gsoc-flyer-pdf-116x150.jpg',
|
||||
'width' => 116,
|
||||
'height' => 150,
|
||||
'mime-type' => 'image/jpeg',
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user