mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Media: Use consistent mirroring check in media views.
Change the mirroring property verification method to be consistent with other usages across models and attachments, since we don't care whether it's assigned directly on inherited. Props MMDeveloper, SergeyBiryukov. Fixes #53856. Built from https://develop.svn.wordpress.org/trunk@52806 git-svn-id: http://core.svn.wordpress.org/trunk@52395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d143c7c47e
commit
1da8de78da
@ -2116,7 +2116,7 @@ AttachmentsBrowser = View.extend(/** @lends wp.media.view.AttachmentsBrowser.pro
|
|||||||
mediaFoundHasMoreResultsMessage = __( 'Number of media items displayed: %d. Scroll the page for more results.' );
|
mediaFoundHasMoreResultsMessage = __( 'Number of media items displayed: %d. Scroll the page for more results.' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( this.collection.hasOwnProperty('mirroring') && this.collection.mirroring.args.s ) {
|
if ( this.collection.mirroring && this.collection.mirroring.args.s ) {
|
||||||
count = this.collection.length;
|
count = this.collection.length;
|
||||||
|
|
||||||
if ( 0 === count ) {
|
if ( 0 === count ) {
|
||||||
|
2
wp-includes/js/media-views.min.js
vendored
2
wp-includes/js/media-views.min.js
vendored
File diff suppressed because one or more lines are too long
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.0-alpha-52805';
|
$wp_version = '6.0-alpha-52806';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user