In the QuickPress media modal, use the new post id when a post is published.

Props nacin, koopersmith
fixes #22673


git-svn-id: https://develop.svn.wordpress.org/trunk@22994 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2012-12-03 07:17:10 +00:00
parent 594bbe90df
commit 71d333f660
8 changed files with 86 additions and 61 deletions

View File

@@ -323,7 +323,7 @@ function wp_default_scripts( &$scripts ) {
did_action( 'init' ) && $scripts->localize( 'media-models', '_wpMediaModelsL10n', array(
'settings' => array(
'ajaxurl' => admin_url( 'admin-ajax.php', 'relative' ),
'postId' => 0,
'post' => array( 'id' => 0 ),
),
) );