Changeset 12343 for trunk/wp-admin/includes/post.php
- Timestamp:
- 12/08/2009 09:24:32 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r12342 r12343 1063 1063 1064 1064 /** 1065 * Output HTML for the post thumbnailmeta-box.1065 * Output HTML for the post image meta-box. 1066 1066 * 1067 1067 * @since 2.9.0 … … 1070 1070 * @return string html 1071 1071 */ 1072 function _wp_post_ thumbnail_html( $thumbnail_id = NULL ) {1072 function _wp_post_image_html( $thumbnail_id = NULL ) { 1073 1073 global $content_width, $_wp_additional_image_sizes; 1074 $content = '<p class="hide-if-no-js"><a href="#" id="set-post-thumbnail" onclick="jQuery(\'#add_image\').click();return false;">' . esc_html__( 'Set thumbnail' ) . '</a></p>';1074 $content = '<p class="hide-if-no-js"><a href="#" id="set-post-thumbnail" onclick="jQuery(\'#add_image\').click();return false;">' . esc_html__( 'Set image' ) . '</a></p>'; 1075 1075 1076 1076 if ( $thumbnail_id && get_post( $thumbnail_id ) ) { … … 1083 1083 if ( !empty( $thumbnail_html ) ) { 1084 1084 $content = '<a href="#" id="set-post-thumbnail" onclick="jQuery(\'#add_image\').click();return false;">' . $thumbnail_html . '</a>'; 1085 $content .= '<p class="hide-if-no-js"><a href="#" id="remove-post-thumbnail" onclick="WPRemoveThumbnail();return false;">' . esc_html__( 'Remove thumbnail' ) . '</a></p>';1085 $content .= '<p class="hide-if-no-js"><a href="#" id="remove-post-thumbnail" onclick="WPRemoveThumbnail();return false;">' . esc_html__( 'Remove image' ) . '</a></p>'; 1086 1086 } 1087 1087 $content_width = $old_content_width; 1088 1088 } 1089 1089 1090 return apply_filters( 'admin_post_ thumbnail_html', $content );1090 return apply_filters( 'admin_post_image_html', $content ); 1091 1091 } 1092 1092
Note: See TracChangeset
for help on using the changeset viewer.