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:
parent
c418ba0205
commit
f92af0238e
|
@ -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
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue