Coding Standards: Avoid using confusing `!` condition in Media Library selection check.

Checks that value is now equal or less than or equal to 0 which has the same result as the previous confusing `!` usage.

Props kadamwhite, drjosh07.
See #60369.

Built from https://develop.svn.wordpress.org/trunk@59037


git-svn-id: http://core.svn.wordpress.org/trunk@58433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
antpb 2024-09-17 22:26:17 +00:00
parent c418ba0205
commit f92af0238e
3 changed files with 3 additions and 3 deletions

View File

@ -8443,7 +8443,7 @@ Modal = wp.media.View.extend(/** @lends wp.media.view.Modal.prototype */{
selectHandler: function( event ) {
var selection = this.controller.state().get( 'selection' );
if ( ! selection.length > 0 ) {
if ( selection.length <= 0 ) {
return;
}

File diff suppressed because one or more lines are too long

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.7-alpha-59036';
$wp_version = '6.7-alpha-59037';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.