Changeset 19999
- Timestamp:
- 02/27/2012 07:23:03 PM (13 years ago)
- Location:
- trunk/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r19982 r19999 393 393 } 394 394 395 function get_upload_iframe_src( $type = null ) {395 function get_upload_iframe_src( $type = null, $post_id = null ) { 396 396 global $post_ID; 397 397 398 $uploading_iframe_ID = (int) $post_ID; 398 if ( empty( $post_id ) ) 399 $post_id = $post_ID; 400 401 $uploading_iframe_ID = (int) $post_id; 399 402 $upload_iframe_src = add_query_arg( 'post_id', $uploading_iframe_ID, admin_url('media-upload.php') ); 400 403 -
trunk/wp-admin/includes/post.php
r19902 r19999 1153 1153 $post_id = $post_ID; 1154 1154 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>'; 1156 1156 $content = sprintf($set_thumbnail_link, esc_html__( 'Set featured image' )); 1157 1157
Note: See TracChangeset
for help on using the changeset viewer.