Make WordPress Core

Changeset 56743


Ignore:
Timestamp:
09/29/2023 12:19:29 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/image.php

    r56695 r56743  
    783783                                $iptc = iptcparse( $info['APP13'] );
    784784                        } else {
    785                                 // phpcs:ignore WordPress.PHP.NoSilencedErrors -- Silencing notice and warning is intentional. See https://core.trac.wordpress.org/ticket/42480
     785                                // Silencing notice and warning is intentional. See https://core.trac.wordpress.org/ticket/42480
    786786                                $iptc = @iptcparse( $info['APP13'] );
    787787                        }
     
    856856                        $exif = exif_read_data( $file );
    857857                } else {
    858                         // phpcs:ignore WordPress.PHP.NoSilencedErrors -- Silencing notice and warning is intentional. See https://core.trac.wordpress.org/ticket/42480
     858                        // Silencing notice and warning is intentional. See https://core.trac.wordpress.org/ticket/42480
    859859                        $exif = @exif_read_data( $file );
    860860                }
  • trunk/src/wp-includes/functions.php

    r56732 r56743  
    33183318                                $imagesize = getimagesize( $file );
    33193319                        } else {
    3320                                 // phpcs:ignore WordPress.PHP.NoSilencedErrors
    33213320                                $imagesize = @getimagesize( $file );
    33223321                        }
  • trunk/src/wp-includes/media.php

    r56693 r56743  
    54785478                 */
    54795479                if ( 2 === func_num_args() ) {
    5480                         // phpcs:ignore WordPress.PHP.NoSilencedErrors
    54815480                        $info = @getimagesize( $filename, $image_info );
    54825481                } else {
    5483                         // phpcs:ignore WordPress.PHP.NoSilencedErrors
    54845482                        $info = @getimagesize( $filename );
    54855483                }
Note: See TracChangeset for help on using the changeset viewer.