Media: Correctly fetch the default post ID when editing a gallery. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22714 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
69f9e2a1bf
commit
f3199b6005
@ -298,7 +298,7 @@ var tb_position;
|
||||
|
||||
edit: function( content ) {
|
||||
var shortcode = wp.shortcode.next( 'gallery', content ),
|
||||
defaultPostId = wp.media.gallery.defaults.postId,
|
||||
defaultPostId = wp.media.gallery.defaults.id,
|
||||
attachments, selection;
|
||||
|
||||
// Bail if we didn't match the shortcode or all of the content.
|
||||
|
Loading…
Reference in New Issue
Block a user