WordPress.org

Make WordPress Core

Ticket #12792: 12792.2.diff

File 12792.2.diff, 826 bytes (added by scribu, 4 years ago)

Restore thickbox title for featured images

  • wp-admin/includes/post.php

     
    11441144function _wp_post_thumbnail_html( $thumbnail_id = NULL ) { 
    11451145        global $content_width, $_wp_additional_image_sizes; 
    11461146 
    1147         $set_thumbnail_link = '<p class="hide-if-no-js"><a href="' . get_upload_iframe_src('image') . '" id="set-post-thumbnail" class="thickbox">%s</a></p>'; 
     1147        $set_thumbnail_link = '<p class="hide-if-no-js"><a title="' . esc_attr__( 'Set featured image' ) . '" href="' . get_upload_iframe_src('image') . '" id="set-post-thumbnail" class="thickbox">%s</a></p>'; 
    11481148        $content = sprintf($set_thumbnail_link, esc_html__( 'Set featured image' )); 
    11491149 
    11501150        if ( $thumbnail_id && get_post( $thumbnail_id ) ) {