WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/08/2009 09:24:32 PM (11 years ago)
Author:
markjaquith
Message:

More standardization around Post/Page Image instead of Post/Page Thumbnail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r12342 r12343  
    10631063
    10641064/**
    1065  * Output HTML for the post thumbnail meta-box.
     1065 * Output HTML for the post image meta-box.
    10661066 *
    10671067 * @since 2.9.0
     
    10701070 * @return string html
    10711071 */
    1072 function _wp_post_thumbnail_html( $thumbnail_id = NULL ) {
     1072function _wp_post_image_html( $thumbnail_id = NULL ) {
    10731073    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>';
    10751075
    10761076    if ( $thumbnail_id && get_post( $thumbnail_id ) ) {
     
    10831083        if ( !empty( $thumbnail_html ) ) {
    10841084            $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>';
    10861086        }
    10871087        $content_width = $old_content_width;
    10881088    }
    10891089
    1090     return apply_filters( 'admin_post_thumbnail_html', $content );
     1090    return apply_filters( 'admin_post_image_html', $content );
    10911091}
    10921092
Note: See TracChangeset for help on using the changeset viewer.