Changeset 12343
- Timestamp:
- 12/08/2009 09:24:32 PM (15 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r12286 r12343 1411 1411 if ( $thumbnail_id == '-1' ) { 1412 1412 delete_post_meta( $post_id, '_thumbnail_id' ); 1413 die( _wp_post_ thumbnail_html() );1413 die( _wp_post_image_html() ); 1414 1414 } 1415 1415 … … 1418 1418 if ( !empty( $thumbnail_html ) ) { 1419 1419 update_post_meta( $post_id, '_thumbnail_id', $thumbnail_id ); 1420 die( _wp_post_ thumbnail_html( $thumbnail_id ) );1420 die( _wp_post_image_html( $thumbnail_id ) ); 1421 1421 } 1422 1422 } -
trunk/wp-admin/edit-form-advanced.php
r12339 r12343 100 100 add_meta_box('categorydiv', __('Categories'), 'post_categories_meta_box', 'post', 'side', 'core'); 101 101 if ( current_theme_supports( 'post-images' ) ) 102 add_meta_box('postimagediv', __('Post Thumbnail'), 'post_thumbnail_meta_box', 'post', 'side', 'low');102 add_meta_box('postimagediv', __('Post Image'), 'post_image_meta_box', 'post', 'side', 'low'); 103 103 add_meta_box('postexcerpt', __('Excerpt'), 'post_excerpt_meta_box', 'post', 'normal', 'core'); 104 104 add_meta_box('trackbacksdiv', __('Send Trackbacks'), 'post_trackback_meta_box', 'post', 'normal', 'core'); -
trunk/wp-admin/edit-page-form.php
r12339 r12343 82 82 add_meta_box('slugdiv', __('Page Slug'), 'post_slug_meta_box', 'page', 'normal', 'core'); 83 83 if ( current_theme_supports( 'post-images' ) ) 84 add_meta_box('postimagediv', __('Page Thumbnail'), 'post_thumbnail_meta_box', 'page', 'side', 'low');84 add_meta_box('postimagediv', __('Page Image'), 'post_image_meta_box', 'page', 'side', 'low'); 85 85 86 86 $authors = get_editable_user_ids( $current_user->id, true, 'page' ); // TODO: ROLE SYSTEM -
trunk/wp-admin/includes/meta-boxes.php
r12330 r12343 816 816 817 817 /** 818 * Display post thumbnailmeta box.818 * Display post image meta box. 819 819 * 820 820 * @since 2.9.0 821 821 */ 822 function post_ thumbnail_meta_box() {822 function post_image_meta_box() { 823 823 global $post; 824 824 $thumbnail_id = get_post_meta( $post->ID, '_thumbnail_id', true ); 825 echo _wp_post_ thumbnail_html( $thumbnail_id );826 } 825 echo _wp_post_image_html( $thumbnail_id ); 826 } -
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.