Ticket #33096: 33096.1.patch
| File 33096.1.patch, 988 bytes (added by , 11 years ago) |
|---|
-
src/wp-includes/js/mce-view.js
728 728 * and a view for embeddable URLs. 729 729 */ 730 730 ( function( window, views, $ ) { 731 var postID = $( '#post_ID' ).val() || 0, 732 media, gallery, av, embed; 731 var media, gallery, av, embed; 733 732 734 733 media = { 735 734 state: [], … … 760 759 template: wp.media.template( 'editor-gallery' ), 761 760 762 761 initialize: function() { 763 var attachments = wp.media.gallery.attachments( this.shortcode, postID),762 var attachments = wp.media.gallery.attachments( this.shortcode, wp.media.view.settings.post.id ), 764 763 attrs = this.shortcode.attrs.named, 765 764 self = this; 766 765 … … 805 804 } 806 805 807 806 wp.ajax.post( this.action, { 808 post_ID: postID,807 post_ID: wp.media.view.settings.post.id, 809 808 type: this.shortcode.tag, 810 809 shortcode: this.shortcode.string() 811 810 } )