diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php
index b0e2c79aef..418fa666e3 100644
|
a
|
b
|
function wp_show_heic_upload_error( $plupload_settings ) { |
| 4976 | 4976 | * @since 5.7.0 |
| 4977 | 4977 | * |
| 4978 | 4978 | * @param string $filename The file path. |
| 4979 | | * @param array $imageinfo Extended image information, passed by reference. |
| | 4979 | * @param array &$image_info [optional] Extended image information, passed by reference. |
| 4980 | 4980 | * @return array|false Array of image information or false on failure. |
| 4981 | 4981 | */ |
| 4982 | | function wp_getimagesize( $filename, &$imageinfo = array() ) { |
| | 4982 | function wp_getimagesize( $filename, array &$image_info = null ) { |
| 4983 | 4983 | if ( |
| 4984 | 4984 | // Skip when running unit tests. |
| 4985 | 4985 | ! defined( 'WP_RUN_CORE_TESTS' ) |
| … |
… |
function wp_getimagesize( $filename, &$imageinfo = array() ) { |
| 4987 | 4987 | // Return without silencing errors when in debug mode. |
| 4988 | 4988 | defined( 'WP_DEBUG' ) && WP_DEBUG |
| 4989 | 4989 | ) { |
| 4990 | | return getimagesize( $filename, $imageinfo ); |
| | 4990 | return getimagesize( $filename, $image_info ); |
| 4991 | 4991 | } |
| 4992 | 4992 | |
| 4993 | 4993 | /* |
| … |
… |
function wp_getimagesize( $filename, &$imageinfo = array() ) { |
| 5001 | 5001 | * |
| 5002 | 5002 | * phpcs:ignore WordPress.PHP.NoSilencedErrors |
| 5003 | 5003 | */ |
| 5004 | | return @getimagesize( $filename, $imageinfo ); |
| | 5004 | return @getimagesize( $filename, $image_info ); |
| 5005 | 5005 | } |