From 79435f42faceb53208a89c10635cc8f388784114 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 21 Nov 2012 09:35:23 +0000 Subject: [PATCH] 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 --- wp-admin/edit-form-advanced.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index e0461f2421..05f24fd3d0 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -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();