mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 06:10:09 +00:00
Customizer: Remove date filter from the Header/Background Image upload frames.
Adds an option to `wp.media.view.AttachmentsBrowser` to hide the date filter added in [29813]. see #30689. git-svn-id: https://develop.svn.wordpress.org/trunk@30872 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1060,18 +1060,17 @@
|
||||
*/
|
||||
initFrame: function() {
|
||||
this.frame = wp.media({
|
||||
// The title of the media modal.
|
||||
title: this.params.button_labels.frame_title,
|
||||
|
||||
// Restrict the library to specified mime type.
|
||||
library: {
|
||||
type: this.params.mime_type
|
||||
},
|
||||
button: {
|
||||
// Change the submit button label.
|
||||
text: this.params.button_labels.frame_button
|
||||
},
|
||||
multiple: false
|
||||
states: [
|
||||
new wp.media.controller.Library({
|
||||
title: this.params.button_labels.frame_title,
|
||||
library: wp.media.query({ type: this.params.mime_type }),
|
||||
multiple: false,
|
||||
date: false
|
||||
})
|
||||
]
|
||||
});
|
||||
|
||||
// When a file is selected, run a callback.
|
||||
@@ -1275,6 +1274,7 @@
|
||||
title: l10n.chooseImage,
|
||||
library: wp.media.query({ type: 'image' }),
|
||||
multiple: false,
|
||||
date: false,
|
||||
priority: 20,
|
||||
suggestedWidth: _wpCustomizeHeader.data.width,
|
||||
suggestedHeight: _wpCustomizeHeader.data.height
|
||||
|
||||
Reference in New Issue
Block a user