WordPress.org

Make WordPress Core

Changeset 22742


Ignore:
Timestamp:
11/21/2012 09:35:23 AM (6 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r22735 r22742  
    2727if ( post_type_supports($post_type, 'editor') || post_type_supports($post_type, 'thumbnail') ) {
    2828    add_thickbox();
    29     wp_enqueue_media( array( 'post' => $post_id ) );
     29    wp_enqueue_media( array( 'post' => $post_ID ) );
    3030}
    3131
Note: See TracChangeset for help on using the changeset viewer.