mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
Media: Correctly fetch the default post ID when editing a gallery. see #21390.
git-svn-id: http://core.svn.wordpress.org/trunk@22714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e25565f4b7
commit
3f630bf0fa
@ -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