Make WordPress Core

Ticket #39759: 39759.2.patch

File 39759.2.patch, 547 bytes (added by jontyravi, 9 years ago)

Added doc part for the filter

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

     
    2222                        $thumbnail_id = get_the_ID();
    2323                }
    2424
     25                /**
     26         * Added filter for the $thumbnail_id
     27         */
     28                $thumbnail_id = apply_filters( 'embed_thumbnail_id', $thumbnail_id );
     29
    2530                if ( $thumbnail_id ) {
    2631                        $aspect_ratio = 1;
    2732                        $measurements = array( 1, 1 );