summaryrefslogtreecommitdiffstats
path: root/wp-admin/js/post.js
diff options
context:
space:
mode:
Diffstat (limited to 'wp-admin/js/post.js')
-rw-r--r--wp-admin/js/post.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/wp-admin/js/post.js b/wp-admin/js/post.js
index a81fc81..273a6a4 100644
--- a/wp-admin/js/post.js
+++ b/wp-admin/js/post.js
@@ -181,5 +181,9 @@ jQuery(document).ready( function() {
if ( jQuery.isFunction( autosave_update_post_ID ) ) {
autosave_update_post_ID(s.parsed.responses[0].supplemental.postid);
}
- } });
+ }, addBefore: function( s ) {
+ s.data += '&post_id=' + jQuery('#post_ID').val();
+ return s;
+ }
+ });
});