mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Revert [29428] to avoid errors with Add Media for now.
See #29026. Built from https://develop.svn.wordpress.org/trunk@29432 git-svn-id: http://core.svn.wordpress.org/trunk@29210 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6b3251e931
commit
c5dff42d51
@ -371,7 +371,7 @@ class WP_List_Table {
|
||||
if ( empty( $this->_actions ) )
|
||||
return;
|
||||
|
||||
echo "<label for='bulk-action-selector-" . esc_attr( $which ) . "' class='screen-reader-text'>" . __( 'Select bulk action' ) . "</label>";
|
||||
echo "<label for='bulk-action-selector-" . esc_attr( $which ) . "' class='screen-reader-text'>" . __( 'Select Bulk Action' ) . "</label>";
|
||||
echo "<select name='action$two' id='bulk-action-selector-" . esc_attr( $which ) . "'>\n";
|
||||
echo "<option value='-1' selected='selected'>" . __( 'Bulk Actions' ) . "</option>\n";
|
||||
|
||||
@ -469,8 +469,7 @@ class WP_List_Table {
|
||||
|
||||
$m = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0;
|
||||
?>
|
||||
<label for="filter-by-date" class="screen-reader-text"><?php _e( 'Filter by date' ); ?></label>
|
||||
<select name="m" id="filter-by-date">
|
||||
<select name="m">
|
||||
<option<?php selected( $m, 0 ); ?> value="0"><?php _e( 'All dates' ); ?></option>
|
||||
<?php
|
||||
foreach ( $months as $arc_row ) {
|
||||
|
@ -565,8 +565,7 @@
|
||||
* @augments Backbone.View
|
||||
*/
|
||||
media.view.BulkSelectionActionDropdown = media.View.extend({
|
||||
tagName: 'select',
|
||||
id: 'bulk-select-dropdown',
|
||||
tagName: 'select',
|
||||
|
||||
initialize: function() {
|
||||
media.view.Button.prototype.initialize.apply( this, arguments );
|
||||
|
2
wp-includes/js/media-grid.min.js
vendored
2
wp-includes/js/media-grid.min.js
vendored
File diff suppressed because one or more lines are too long
@ -5697,10 +5697,7 @@
|
||||
var filters,
|
||||
LibraryViewSwitcher,
|
||||
FiltersConstructor,
|
||||
filterByTypeLabel,
|
||||
bulkActionsLabel,
|
||||
filterByDateLabel,
|
||||
searchLabel;
|
||||
screenReaderText;
|
||||
|
||||
/**
|
||||
* @member {wp.media.view.Toolbar}
|
||||
@ -5715,32 +5712,24 @@
|
||||
// browser view. Is this a use case for doAction( 'add:toolbar-items:attachments-browser', this.toolbar );
|
||||
// which the controller can tap into and add this view?
|
||||
if ( this.controller.activeModes.where( { id: 'grid' } ).length ) {
|
||||
|
||||
LibraryViewSwitcher = media.View.extend({
|
||||
className: 'view-switch media-grid-view-switch',
|
||||
template: media.template( 'media-library-view-switcher')
|
||||
});
|
||||
|
||||
this.toolbar.set( 'libraryViewSwitcher', new LibraryViewSwitcher({
|
||||
controller: this.controller,
|
||||
priority: -90
|
||||
}).render() );
|
||||
|
||||
this.toolbar.set( 'dateFilter', new media.view.DateFilter({
|
||||
controller: this.controller,
|
||||
model: this.collection.props,
|
||||
priority: -75
|
||||
}).render() );
|
||||
|
||||
this.toolbar.set( 'bulkSelection', new media.view.BulkSelection({
|
||||
controller: this.controller,
|
||||
priority: -70
|
||||
}).render() );
|
||||
|
||||
this.toolbar.set( 'spinner', new media.view.Spinner({
|
||||
priority: -60
|
||||
}) );
|
||||
|
||||
this.toolbar.set( 'dateFilter', new media.view.DateFilter({
|
||||
controller: this.controller,
|
||||
model: this.collection.props,
|
||||
priority: -75
|
||||
}).render() );
|
||||
}
|
||||
|
||||
filters = this.options.filters;
|
||||
@ -5757,24 +5746,22 @@
|
||||
priority: -80
|
||||
}).render() );
|
||||
|
||||
filterByTypeLabel = $( '<label class="screen-reader-text" for="media-attachment-filters">' + l10n.filterByType + '</label>' );
|
||||
this.toolbar.get( 'filters' ).$el.before( filterByTypeLabel );
|
||||
|
||||
filterByDateLabel = $( '<label class="screen-reader-text" for="media-attachment-date-filters">' + l10n.filterByDate + '</label>' );
|
||||
this.toolbar.get( 'dateFilter' ).$el.before( filterByDateLabel );
|
||||
|
||||
bulkActionsLabel = $( '<label class="screen-reader-text" for="bulk-select-dropdown">' + l10n.bulkActionsLabel + '</label>' );
|
||||
this.toolbar.get( 'bulkSelection' ).$el.before( bulkActionsLabel );
|
||||
screenReaderText = $( '<label class="screen-reader-text" for="media-attachment-filters">' + l10n.select + '</label>' );
|
||||
this.toolbar.get( 'filters' ).$el.before( screenReaderText );
|
||||
}
|
||||
|
||||
this.toolbar.set( 'spinner', new media.view.Spinner({
|
||||
priority: -70
|
||||
}) );
|
||||
|
||||
if ( this.options.search ) {
|
||||
this.toolbar.set( 'search', new media.view.Search({
|
||||
controller: this.controller,
|
||||
model: this.collection.props,
|
||||
priority: 60
|
||||
}).render() );
|
||||
searchLabel = $( '<label class="screen-reader-text" for="media-search-input">' + l10n.searchMediaLabel + '</label>' );
|
||||
this.toolbar.get( 'search' ).$el.before( searchLabel );
|
||||
screenReaderText = $( '<label class="screen-reader-text" for="media-search-input">' + l10n.search + '</label>' );
|
||||
this.toolbar.get( 'search' ).$el.before( screenReaderText );
|
||||
}
|
||||
|
||||
if ( this.options.dragInfo ) {
|
||||
|
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
@ -2937,12 +2937,8 @@ function wp_enqueue_media( $args = array() ) {
|
||||
'warnDelete' => __( "You are about to permanently delete this item.\n 'Cancel' to stop, 'OK' to delete." ),
|
||||
'warnBulkDelete' => __( "You are about to permanently delete these items.\n 'Cancel' to stop, 'OK' to delete." ),
|
||||
'bulkActions' => __( 'Bulk Actions' ),
|
||||
'bulkActionsLabel' => __( 'Select bulk action' ),
|
||||
'deletePermanently' => __( 'Delete Permanently' ),
|
||||
'apply' => __( 'Apply' ),
|
||||
'filterByDate' => __( 'Filter by date' ),
|
||||
'filterByType' => __( 'Filter by type' ),
|
||||
'searchMediaLabel' => __( 'Search Media' ),
|
||||
|
||||
// Library Details
|
||||
'attachmentDetails' => __( 'Attachment Details' ),
|
||||
|
Loading…
Reference in New Issue
Block a user