From 73be6fd8efe9f56a35da83c43e19134ffad01df6 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Thu, 5 Aug 2021 03:37:56 +0000 Subject: [PATCH] Coding Standards: Use strict comparisons in `wp-admin/upload.php`. See #53359. Built from https://develop.svn.wordpress.org/trunk@51549 git-svn-id: http://core.svn.wordpress.org/trunk@51160 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/upload.php | 10 +++++----- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-admin/upload.php b/wp-admin/upload.php index fe7c9fdf21..18dba6a640 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -300,7 +300,7 @@ if ( ! empty( $_GET['posted'] ) ) { if ( ! empty( $_GET['attached'] ) && absint( $_GET['attached'] ) ) { $attached = absint( $_GET['attached'] ); - if ( 1 == $attached ) { + if ( 1 === $attached ) { $message = __( 'Media file attached.' ); } else { /* translators: %s: Number of media files. */ @@ -312,7 +312,7 @@ if ( ! empty( $_GET['attached'] ) && absint( $_GET['attached'] ) ) { if ( ! empty( $_GET['detach'] ) && absint( $_GET['detach'] ) ) { $detached = absint( $_GET['detach'] ); - if ( 1 == $detached ) { + if ( 1 === $detached ) { $message = __( 'Media file detached.' ); } else { /* translators: %s: Number of media files. */ @@ -324,7 +324,7 @@ if ( ! empty( $_GET['detach'] ) && absint( $_GET['detach'] ) ) { if ( ! empty( $_GET['deleted'] ) && absint( $_GET['deleted'] ) ) { $deleted = absint( $_GET['deleted'] ); - if ( 1 == $deleted ) { + if ( 1 === $deleted ) { $message = __( 'Media file permanently deleted.' ); } else { /* translators: %s: Number of media files. */ @@ -336,7 +336,7 @@ if ( ! empty( $_GET['deleted'] ) && absint( $_GET['deleted'] ) ) { if ( ! empty( $_GET['trashed'] ) && absint( $_GET['trashed'] ) ) { $trashed = absint( $_GET['trashed'] ); - if ( 1 == $trashed ) { + if ( 1 === $trashed ) { $message = __( 'Media file moved to the Trash.' ); } else { /* translators: %s: Number of media files. */ @@ -349,7 +349,7 @@ if ( ! empty( $_GET['trashed'] ) && absint( $_GET['trashed'] ) ) { if ( ! empty( $_GET['untrashed'] ) && absint( $_GET['untrashed'] ) ) { $untrashed = absint( $_GET['untrashed'] ); - if ( 1 == $untrashed ) { + if ( 1 === $untrashed ) { $message = __( 'Media file restored from the Trash.' ); } else { /* translators: %s: Number of media files. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index 0ef171c8b6..888892dfc9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51548'; +$wp_version = '5.9-alpha-51549'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.