Make WordPress Core

Ticket #52826: 52826.3

File 52826.3, 1.3 KB (added by hellofromTonya, 5 years ago)

Improvements to DocBlock for consistency.

Line 
1diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php
2index b0e2c79aef..a5504732d6 100644
3--- a/src/wp-includes/media.php
4+++ b/src/wp-includes/media.php
5@@ -4975,11 +4975,11 @@ function wp_show_heic_upload_error( $plupload_settings ) {
6  *
7  * @since 5.7.0
8  *
9- * @param string $filename  The file path.
10- * @param array  $imageinfo Extended image information, passed by reference.
11+ * @param string $filename   The file path.
12+ * @param array  $image_info Optional. Extended image information (passed by reference).
13  * @return array|false Array of image information or false on failure.
14  */
15-function wp_getimagesize( $filename, &$imageinfo = array() ) {
16+function wp_getimagesize( $filename, array &$image_info = null ) {
17        if (
18                // Skip when running unit tests.
19                ! defined( 'WP_RUN_CORE_TESTS' )
20@@ -4987,7 +4987,7 @@ function wp_getimagesize( $filename, &$imageinfo = array() ) {
21                // Return without silencing errors when in debug mode.
22                defined( 'WP_DEBUG' ) && WP_DEBUG
23        ) {
24-               return getimagesize( $filename, $imageinfo );
25+               return getimagesize( $filename, $image_info );
26        }
27 
28        /*
29@@ -5001,5 +5001,5 @@ function wp_getimagesize( $filename, &$imageinfo = array() ) {
30         *
31         * phpcs:ignore WordPress.PHP.NoSilencedErrors
32         */
33-       return @getimagesize( $filename, $imageinfo );
34+       return @getimagesize( $filename, $image_info );
35 }