From 3f630bf0fab2d493211e5b9a3f1bd3e28e94442e Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Tue, 20 Nov 2012 14:33:48 +0000 Subject: [PATCH] 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 --- wp-admin/js/media-upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/js/media-upload.js b/wp-admin/js/media-upload.js index 390c57adb9..c0d073a57d 100644 --- a/wp-admin/js/media-upload.js +++ b/wp-admin/js/media-upload.js @@ -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.