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:
parent
a763641235
commit
51f2e14b46
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue