Changeset 20594
- Timestamp:
- 04/25/2012 08:24:20 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r20440 r20594 1146 1146 $post_id = $post_ID; 1147 1147 1148 $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>'; 1149 $content = sprintf($set_thumbnail_link, esc_html__( 'Set featured image' )); 1148 $upload_iframe_src = esc_url( get_upload_iframe_src('image', $post_id) ); 1149 $set_thumbnail_link = '<p class="hide-if-no-js"><a title="' . esc_attr__( 'Set featured image' ) . '" href="%s" id="set-post-thumbnail" class="thickbox">%s</a></p>'; 1150 $content = sprintf( $set_thumbnail_link, $upload_iframe_src, esc_html__( 'Set featured image' ) ); 1150 1151 1151 1152 if ( $thumbnail_id && get_post( $thumbnail_id ) ) { … … 1158 1159 if ( !empty( $thumbnail_html ) ) { 1159 1160 $ajax_nonce = wp_create_nonce( "set_post_thumbnail-$post_id" ); 1160 $content = sprintf( $set_thumbnail_link, $thumbnail_html);1161 $content = sprintf( $set_thumbnail_link, $upload_iframe_src, $thumbnail_html ); 1161 1162 $content .= '<p class="hide-if-no-js"><a href="#" id="remove-post-thumbnail" onclick="WPRemoveThumbnail(\'' . $ajax_nonce . '\');return false;">' . esc_html__( 'Remove featured image' ) . '</a></p>'; 1162 1163 }
Note: See TracChangeset
for help on using the changeset viewer.