Make WordPress Core

Ticket #39759: 39759.5.patch

File 39759.5.patch, 639 bytes (added by ketuchetan, 9 years ago)

Made the correction in doc

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

     
    2222                        $thumbnail_id = get_the_ID();
    2323                }
    2424
     25                /**
     26                 * Filters the thumbnail image id for use in the embed template.
     27                 *
     28                 * @since 4.8.0
     29                 *
     30                 * @param int $thumbnail_id Attachment ID.
     31                 */
     32                $thumbnail_id = apply_filters( 'embed_thumbnail_id', $thumbnail_id );
     33
    2534                if ( $thumbnail_id ) {
    2635                        $aspect_ratio = 1;
    2736                        $measurements = array( 1, 1 );