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:
parent
27515780f6
commit
79435f42fa
@ -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
Block a user