diff --git a/src/wp-admin/includes/image.php b/src/wp-admin/includes/image.php
index e64c49c4d1..56b9c0a36f 100644
|
a
|
b
|
function wp_read_image_metadata( $file ) { |
| 721 | 721 | if ( ! empty( $info['APP13'] ) ) { |
| 722 | 722 | if ( |
| 723 | 723 | // Skip when running unit tests. |
| 724 | | ! defined( 'DIR_TESTDATA' ) |
| | 724 | ! defined( 'WP_RUN_CORE_TESTS' ) |
| 725 | 725 | && |
| 726 | 726 | // Process without silencing errors when in debug mode. |
| 727 | 727 | defined( 'WP_DEBUG' ) && WP_DEBUG |
| … |
… |
function wp_read_image_metadata( $file ) { |
| 792 | 792 | if ( is_callable( 'exif_read_data' ) && in_array( $image_type, $exif_image_types, true ) ) { |
| 793 | 793 | if ( |
| 794 | 794 | // Skip when running unit tests. |
| 795 | | ! defined( 'DIR_TESTDATA' ) |
| | 795 | ! defined( 'WP_RUN_CORE_TESTS' ) |
| 796 | 796 | && |
| 797 | 797 | // Process without silencing errors when in debug mode. |
| 798 | 798 | defined( 'WP_DEBUG' ) && WP_DEBUG |
diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php
index b22e04f3e3..11b6fae7d1 100644
|
a
|
b
|
function wp_show_heic_upload_error( $plupload_settings ) { |
| 4975 | 4975 | function wp_getimagesize( $filename, &$imageinfo = array() ) { |
| 4976 | 4976 | if ( |
| 4977 | 4977 | // Skip when running unit tests. |
| 4978 | | ! defined( 'DIR_TESTDATA' ) |
| | 4978 | ! defined( 'WP_RUN_CORE_TESTS' ) |
| 4979 | 4979 | && |
| 4980 | 4980 | // Return without silencing errors when in debug mode. |
| 4981 | 4981 | defined( 'WP_DEBUG' ) && WP_DEBUG |