Make WordPress Core


Ignore:
Timestamp:
08/05/2021 03:36:24 AM (3 years ago)
Author:
peterwilsoncc
Message:

Coding Standards: Use strict comparisons in wp-admin/upload.php.

See #53359.

File:
1 edited

Legend:

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

    r51475 r51549  
    301301if ( ! empty( $_GET['attached'] ) && absint( $_GET['attached'] ) ) {
    302302    $attached = absint( $_GET['attached'] );
    303     if ( 1 == $attached ) {
     303    if ( 1 === $attached ) {
    304304        $message = __( 'Media file attached.' );
    305305    } else {
     
    313313if ( ! empty( $_GET['detach'] ) && absint( $_GET['detach'] ) ) {
    314314    $detached = absint( $_GET['detach'] );
    315     if ( 1 == $detached ) {
     315    if ( 1 === $detached ) {
    316316        $message = __( 'Media file detached.' );
    317317    } else {
     
    325325if ( ! empty( $_GET['deleted'] ) && absint( $_GET['deleted'] ) ) {
    326326    $deleted = absint( $_GET['deleted'] );
    327     if ( 1 == $deleted ) {
     327    if ( 1 === $deleted ) {
    328328        $message = __( 'Media file permanently deleted.' );
    329329    } else {
     
    337337if ( ! empty( $_GET['trashed'] ) && absint( $_GET['trashed'] ) ) {
    338338    $trashed = absint( $_GET['trashed'] );
    339     if ( 1 == $trashed ) {
     339    if ( 1 === $trashed ) {
    340340        $message = __( 'Media file moved to the Trash.' );
    341341    } else {
     
    350350if ( ! empty( $_GET['untrashed'] ) && absint( $_GET['untrashed'] ) ) {
    351351    $untrashed = absint( $_GET['untrashed'] );
    352     if ( 1 == $untrashed ) {
     352    if ( 1 === $untrashed ) {
    353353        $message = __( 'Media file restored from the Trash.' );
    354354    } else {
Note: See TracChangeset for help on using the changeset viewer.