Coding Standards: Remove redundant ignore annotations, take 2.

This removes ignore annotations which are unnecessary due to the configuration in the `phpcs.xml.dist` ruleset already taking care of this.

Follow-up to [45611], [50146], [50148], [50586], [50822], [56738].

Props jrf.
See #59161.
Built from https://develop.svn.wordpress.org/trunk@56743


git-svn-id: http://core.svn.wordpress.org/trunk@56255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2023-09-29 12:21:24 +00:00
parent e74a3bfdb0
commit 440b8c2aba
4 changed files with 3 additions and 6 deletions

View File

@ -782,7 +782,7 @@ function wp_read_image_metadata( $file ) {
) { ) {
$iptc = iptcparse( $info['APP13'] ); $iptc = iptcparse( $info['APP13'] );
} else { } else {
// phpcs:ignore WordPress.PHP.NoSilencedErrors -- Silencing notice and warning is intentional. See https://core.trac.wordpress.org/ticket/42480 // Silencing notice and warning is intentional. See https://core.trac.wordpress.org/ticket/42480
$iptc = @iptcparse( $info['APP13'] ); $iptc = @iptcparse( $info['APP13'] );
} }
@ -855,7 +855,7 @@ function wp_read_image_metadata( $file ) {
) { ) {
$exif = exif_read_data( $file ); $exif = exif_read_data( $file );
} else { } else {
// phpcs:ignore WordPress.PHP.NoSilencedErrors -- Silencing notice and warning is intentional. See https://core.trac.wordpress.org/ticket/42480 // Silencing notice and warning is intentional. See https://core.trac.wordpress.org/ticket/42480
$exif = @exif_read_data( $file ); $exif = @exif_read_data( $file );
} }

View File

@ -3317,7 +3317,6 @@ function wp_get_image_mime( $file ) {
// Not using wp_getimagesize() here to avoid an infinite loop. // Not using wp_getimagesize() here to avoid an infinite loop.
$imagesize = getimagesize( $file ); $imagesize = getimagesize( $file );
} else { } else {
// phpcs:ignore WordPress.PHP.NoSilencedErrors
$imagesize = @getimagesize( $file ); $imagesize = @getimagesize( $file );
} }

View File

@ -5477,10 +5477,8 @@ function wp_getimagesize( $filename, array &$image_info = null ) {
* See https://core.trac.wordpress.org/ticket/42480 * See https://core.trac.wordpress.org/ticket/42480
*/ */
if ( 2 === func_num_args() ) { if ( 2 === func_num_args() ) {
// phpcs:ignore WordPress.PHP.NoSilencedErrors
$info = @getimagesize( $filename, $image_info ); $info = @getimagesize( $filename, $image_info );
} else { } else {
// phpcs:ignore WordPress.PHP.NoSilencedErrors
$info = @getimagesize( $filename ); $info = @getimagesize( $filename );
} }
} }

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.4-beta1-56742'; $wp_version = '6.4-beta1-56743';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.