mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Ensure that wp.media.view.settings.post is set before accessing the post's id
Avoids JS error in cases where media-editor is loaded individually instead of with the whole `wp_enqueue_media()` process. fixes #27836. props nacin git-svn-id: https://develop.svn.wordpress.org/trunk@28149 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
43d194c3b6
commit
e05574bcf9
@ -535,7 +535,7 @@
|
||||
link: 'post',
|
||||
size: 'thumbnail',
|
||||
order: 'ASC',
|
||||
id: wp.media.view.settings.post.id,
|
||||
id: wp.media.view.settings.post && wp.media.view.settings.post.id,
|
||||
orderby : 'menu_order ID'
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user