mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-01 21:21:24 +01:00
Media: Consistency in logic to pass wp_getimagesize()
tests.
Previously, we used `DIR_TESTDATA` to determine if a test should skip a newly silenced error in `wp_getimagesize()`. We are now using `WP_RUN_CORE_TESTS` instead for consistency. Props hellofromTonya, SergeyBiryukov. See #49889. Built from https://develop.svn.wordpress.org/trunk@50170 git-svn-id: http://core.svn.wordpress.org/trunk@49849 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a2fb85da68
commit
b566631d5e
@ -721,7 +721,7 @@ function wp_read_image_metadata( $file ) {
|
||||
if ( ! empty( $info['APP13'] ) ) {
|
||||
if (
|
||||
// Skip when running unit tests.
|
||||
! defined( 'DIR_TESTDATA' )
|
||||
! defined( 'WP_RUN_CORE_TESTS' )
|
||||
&&
|
||||
// Process without silencing errors when in debug mode.
|
||||
defined( 'WP_DEBUG' ) && WP_DEBUG
|
||||
@ -792,7 +792,7 @@ function wp_read_image_metadata( $file ) {
|
||||
if ( is_callable( 'exif_read_data' ) && in_array( $image_type, $exif_image_types, true ) ) {
|
||||
if (
|
||||
// Skip when running unit tests.
|
||||
! defined( 'DIR_TESTDATA' )
|
||||
! defined( 'WP_RUN_CORE_TESTS' )
|
||||
&&
|
||||
// Process without silencing errors when in debug mode.
|
||||
defined( 'WP_DEBUG' ) && WP_DEBUG
|
||||
|
@ -4975,7 +4975,7 @@ function wp_show_heic_upload_error( $plupload_settings ) {
|
||||
function wp_getimagesize( $filename, &$imageinfo = array() ) {
|
||||
if (
|
||||
// Skip when running unit tests.
|
||||
! defined( 'DIR_TESTDATA' )
|
||||
! defined( 'WP_RUN_CORE_TESTS' )
|
||||
&&
|
||||
// Return without silencing errors when in debug mode.
|
||||
defined( 'WP_DEBUG' ) && WP_DEBUG
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.7-alpha-50169';
|
||||
$wp_version = '5.7-alpha-50170';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user