WordPress.org

Make WordPress Core

Ticket #22636: meta-boxes.php.diff

File meta-boxes.php.diff, 610 bytes (added by coreygilmore, 3 years ago)
  • meta-boxes.php

     
    11041104        $thumbnail_id   = get_post_meta( $post->ID, '_thumbnail_id', true ); 
    11051105        $thumbnail_size = isset( $_wp_additional_image_sizes['post-thumbnail'] ) ? 'post-thumbnail' : 'medium'; 
    11061106        $thumbnail_html = wp_get_attachment_image( $thumbnail_id, $thumbnail_size ); 
     1107        $thumbnail_html = apply_filters( 'admin_post_thumbnail_meta_box_html', $thumbnail_html, $post->ID ); 
    11071108 
    11081109        $classes = empty( $thumbnail_id ) ? '' : 'has-featured-image'; 
    11091110