Use a variable that is set a few lines up. $post_id is set only in post.php, not post-new.php. fixes #21092.

git-svn-id: http://core.svn.wordpress.org/trunk@22742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-11-21 09:35:23 +00:00
parent a763641235
commit 51f2e14b46
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ $action = isset($action) ? $action : '';
if ( post_type_supports($post_type, 'editor') || post_type_supports($post_type, 'thumbnail') ) {
add_thickbox();
wp_enqueue_media( array( 'post' => $post_id ) );
wp_enqueue_media( array( 'post' => $post_ID ) );
}
$messages = array();