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: https://develop.svn.wordpress.org/trunk@22742 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-11-21 09:35:23 +00:00
parent 27515780f6
commit 79435f42fa
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();