Changeset 14015 for trunk/wp-admin/includes/post.php
- Timestamp:
- 04/06/2010 11:20:47 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r13940 r14015 1144 1144 function _wp_post_thumbnail_html( $thumbnail_id = NULL ) { 1145 1145 global $content_width, $_wp_additional_image_sizes; 1146 $content = '<p class="hide-if-no-js"><a href="#" id="set-post-thumbnail" onclick="jQuery(\'#add_image\').click();return false;">' . esc_html__( 'Set featured image' ) . '</a></p>'; 1146 1147 $set_thumbnail_link = '<p class="hide-if-no-js"><a href="' . get_upload_iframe_src('image') . '" id="set-post-thumbnail" class="thickbox">%s</a></p>'; 1148 $content = sprintf($set_thumbnail_link, esc_html__( 'Set featured image' )); 1147 1149 1148 1150 if ( $thumbnail_id && get_post( $thumbnail_id ) ) { … … 1154 1156 $thumbnail_html = wp_get_attachment_image( $thumbnail_id, 'post-thumbnail' ); 1155 1157 if ( !empty( $thumbnail_html ) ) { 1156 $content = '<a href="#" id="set-post-thumbnail" onclick="jQuery(\'#add_image\').click();return false;">' . $thumbnail_html . '</a>';1158 $content = sprintf($set_thumbnail_link, $thumbnail_html); 1157 1159 $content .= '<p class="hide-if-no-js"><a href="#" id="remove-post-thumbnail" onclick="WPRemoveThumbnail();return false;">' . esc_html__( 'Remove featured image' ) . '</a></p>'; 1158 1160 }
Note: See TracChangeset
for help on using the changeset viewer.