Make WordPress Core

Ticket #39759: 39759.patch

File 39759.patch, 479 bytes (added by Dency, 9 years ago)

Added filter for the thumbnail_id

  • src/wp-includes/theme-compat/embed-content.php

     
    2222                        $thumbnail_id = get_the_ID();
    2323                }
    2424
     25                $thumbnail_id = apply_filters( 'embed_thumbnail_id', $thumbnail_id );
     26
    2527                if ( $thumbnail_id ) {
    2628                        $aspect_ratio = 1;
    2729                        $measurements = array( 1, 1 );