Make WordPress Core


Ignore:
Timestamp:
02/27/2012 07:23:03 PM (13 years ago)
Author:
ryan
Message:

Pass post id to get_upload_iframe_src() instead of relying on a global. Props tott. fixes #20003

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r19902 r19999  
    11531153        $post_id = $post_ID;
    11541154
    1155     $set_thumbnail_link = '<p class="hide-if-no-js"><a title="' . esc_attr__( 'Set featured image' ) . '" href="' . esc_url( get_upload_iframe_src('image') ) . '" id="set-post-thumbnail" class="thickbox">%s</a></p>';
     1155    $set_thumbnail_link = '<p class="hide-if-no-js"><a title="' . esc_attr__( 'Set featured image' ) . '" href="' . esc_url( get_upload_iframe_src('image', $post_id) ) . '" id="set-post-thumbnail" class="thickbox">%s</a></p>';
    11561156    $content = sprintf($set_thumbnail_link, esc_html__( 'Set featured image' ));
    11571157
Note: See TracChangeset for help on using the changeset viewer.