Changeset 13940
- Timestamp:
- 04/02/2010 06:12:49 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r13924 r13940 114 114 115 115 if ( current_theme_supports( 'post-thumbnails', $post_type ) && post_type_supports($post_type, 'thumbnail') ) 116 add_meta_box('postimagediv', sprintf( __('%s Thumbnail'), $post_type_object->singular_label), 'post_thumbnail_meta_box', $post_type, 'side', 'low');116 add_meta_box('postimagediv', __('Featured Image'), 'post_thumbnail_meta_box', $post_type, 'side', 'low'); 117 117 118 118 if ( post_type_supports($post_type, 'excerpt') ) -
trunk/wp-admin/includes/media.php
r13875 r13940 1283 1283 $calling_post_id = $post->post_parent; 1284 1284 if ( 'image' == $type && $calling_post_id && current_theme_supports( 'post-thumbnails', get_post_type( $calling_post_id ) ) && get_post_thumbnail_id( $calling_post_id ) != $attachment_id ) 1285 $thumbnail = "<a class='wp-post-thumbnail' id='wp-post-thumbnail-" . $attachment_id . "' href='#' onclick='WPSetAsThumbnail(\"$attachment_id\");return false;'>" . esc_html__( "Use as thumbnail" ) . "</a>";1285 $thumbnail = "<a class='wp-post-thumbnail' id='wp-post-thumbnail-" . $attachment_id . "' href='#' onclick='WPSetAsThumbnail(\"$attachment_id\");return false;'>" . esc_html__( "Use as featured image" ) . "</a>"; 1286 1286 1287 1287 if ( ( $send || $thumbnail || $delete ) && !isset( $form_fields['buttons'] ) ) -
trunk/wp-admin/includes/post.php
r13890 r13940 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 thumbnail' ) . '</a></p>';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>'; 1147 1147 1148 1148 if ( $thumbnail_id && get_post( $thumbnail_id ) ) { … … 1155 1155 if ( !empty( $thumbnail_html ) ) { 1156 1156 $content = '<a href="#" id="set-post-thumbnail" onclick="jQuery(\'#add_image\').click();return false;">' . $thumbnail_html . '</a>'; 1157 $content .= '<p class="hide-if-no-js"><a href="#" id="remove-post-thumbnail" onclick="WPRemoveThumbnail();return false;">' . esc_html__( 'Remove thumbnail' ) . '</a></p>';1157 $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 1158 } 1159 1159 $content_width = $old_content_width; -
trunk/wp-includes/script-loader.php
r13920 r13940 392 392 $scripts->add_data( 'set-post-thumbnail', 'group', 1 ); 393 393 $scripts->localize( 'set-post-thumbnail', 'setPostThumbnailL10n', array( 394 'setThumbnail' => __( 'Use as thumbnail' ),394 'setThumbnail' => __( 'Use as featured image' ), 395 395 'saving' => __( 'Saving...' ), 396 396 'error' => __( 'Could not set that as the thumbnail image. Try a different attachment.' ),
Note: See TracChangeset
for help on using the changeset viewer.