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:
parent
e74a3bfdb0
commit
440b8c2aba
|
@ -782,7 +782,7 @@ function wp_read_image_metadata( $file ) {
|
|||
) {
|
||||
$iptc = iptcparse( $info['APP13'] );
|
||||
} 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'] );
|
||||
}
|
||||
|
||||
|
@ -855,7 +855,7 @@ function wp_read_image_metadata( $file ) {
|
|||
) {
|
||||
$exif = exif_read_data( $file );
|
||||
} 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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -3317,7 +3317,6 @@ function wp_get_image_mime( $file ) {
|
|||
// Not using wp_getimagesize() here to avoid an infinite loop.
|
||||
$imagesize = getimagesize( $file );
|
||||
} else {
|
||||
// phpcs:ignore WordPress.PHP.NoSilencedErrors
|
||||
$imagesize = @getimagesize( $file );
|
||||
}
|
||||
|
||||
|
|
|
@ -5477,10 +5477,8 @@ function wp_getimagesize( $filename, array &$image_info = null ) {
|
|||
* See https://core.trac.wordpress.org/ticket/42480
|
||||
*/
|
||||
if ( 2 === func_num_args() ) {
|
||||
// phpcs:ignore WordPress.PHP.NoSilencedErrors
|
||||
$info = @getimagesize( $filename, $image_info );
|
||||
} else {
|
||||
// phpcs:ignore WordPress.PHP.NoSilencedErrors
|
||||
$info = @getimagesize( $filename );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @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.
|
||||
|
|
Loading…
Reference in New Issue