mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@56743 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user