From dc74104c21495fe7b2671b6583e90a6ed947ccd8 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 7 Aug 2014 21:00:45 +0000 Subject: [PATCH] Media Grid: * Use a `media.view.Label` instance in the toolbar for the screen reader text for the "all" dropdown. * Adjust the spinner's priority. Fixes #29026. git-svn-id: https://develop.svn.wordpress.org/trunk@29438 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/media-views.js | 20 +++++++++++++------- src/wp-includes/media.php | 1 + 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/wp-includes/js/media-views.js b/src/wp-includes/js/media-views.js index f576ce7fe2..5a87019111 100644 --- a/src/wp-includes/js/media-views.js +++ b/src/wp-includes/js/media-views.js @@ -5743,6 +5743,10 @@ }).render() ); } + this.toolbar.set( 'spinner', new media.view.Spinner({ + priority: -60 + }) ); + filters = this.options.filters; if ( 'uploaded' === filters ) { FiltersConstructor = media.view.AttachmentFilters.Uploaded; @@ -5751,20 +5755,22 @@ } if ( FiltersConstructor ) { + // "FiltersConstructor" will return a