Make WordPress Core

Changeset 13940


Ignore:
Timestamp:
04/02/2010 06:12:49 AM (15 years ago)
Author:
dd32
Message:

Change UI labels from "Post Thumbnails" to "Featured Image". See #12554

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r13924 r13940  
    114114
    115115if ( 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');
    117117
    118118if ( post_type_supports($post_type, 'excerpt') )
  • trunk/wp-admin/includes/media.php

    r13875 r13940  
    12831283        $calling_post_id = $post->post_parent;
    12841284    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>";
    12861286
    12871287    if ( ( $send || $thumbnail || $delete ) && !isset( $form_fields['buttons'] ) )
  • trunk/wp-admin/includes/post.php

    r13890 r13940  
    11441144function _wp_post_thumbnail_html( $thumbnail_id = NULL ) {
    11451145    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>';
    11471147
    11481148    if ( $thumbnail_id && get_post( $thumbnail_id ) ) {
     
    11551155        if ( !empty( $thumbnail_html ) ) {
    11561156            $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>';
    11581158        }
    11591159        $content_width = $old_content_width;
  • trunk/wp-includes/script-loader.php

    r13920 r13940  
    392392        $scripts->add_data( 'set-post-thumbnail', 'group', 1 );
    393393        $scripts->localize( 'set-post-thumbnail', 'setPostThumbnailL10n', array(
    394             'setThumbnail' => __( 'Use as thumbnail' ),
     394            'setThumbnail' => __( 'Use as featured image' ),
    395395            'saving' => __( 'Saving...' ),
    396396            'error' => __( 'Could not set that as the thumbnail image. Try a different attachment.' ),
Note: See TracChangeset for help on using the changeset viewer.