Back compat $_REQUEST['post_id'] for media XHR requests.

Props koopersmith, nacin.
fixes #22588


git-svn-id: https://develop.svn.wordpress.org/trunk@22865 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2012-11-27 14:58:08 +00:00
parent 31c86e27c2
commit b1f07f0ae1
4 changed files with 18 additions and 10 deletions

View File

@@ -324,6 +324,7 @@ function wp_default_scripts( &$scripts ) {
'settings' => array(
'saveAttachmentNonce' => wp_create_nonce( 'save-attachment' ),
'ajaxurl' => admin_url( 'admin-ajax.php', 'relative' ),
'postId' => 0,
),
) );