Make WordPress Core


Ignore:
Timestamp:
10/17/2015 01:20:19 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Embeds: Rename files, functions, and hooks added in [34903] to make it more clear what is oEmbed-specific and what isn't.

See https://core.trac.wordpress.org/ticket/34272#comment:7 for full list of renamed functions and hooks.

Props swissspidy.
Fixes #34272.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/embed-template.php

    r35096 r35235  
    1212
    1313if ( ! headers_sent() ) {
    14     header( 'X-WP-oembed: true' );
     14    header( 'X-WP-embed: true' );
    1515}
    1616
     
    2929     * @since 4.4.0
    3030     */
    31     do_action( 'oembed_head' );
     31    do_action( 'embed_head' );
    3232    ?>
    3333</head>
     
    6767             *
    6868             * @since 4.4.0
    69              * 
     69             *
    7070             * @param string $image_size Thumbnail image size.
    7171             */
    72             $image_size = apply_filters( 'oembed_thumbnail_image_size', $image_size );
     72            $image_size = apply_filters( 'embed_thumbnail_image_size', $image_size );
    7373
    7474            $shape = $measurements[0] / $measurements[1] >= 1.75 ? 'rectangular' : 'square';
     
    8484             * @param string $shape Thumbnail image shape. Either 'rectangular' or 'square'.
    8585             */
    86             $shape = apply_filters( 'oembed_thumbnail_image_shape', $shape );
     86            $shape = apply_filters( 'embed_thumbnail_image_shape', $shape );
    8787        }
    8888        ?>
     
    118118             * @since 4.4.0
    119119             */
    120             do_action( 'oembed_content' );
     120            do_action( 'embed_content' );
    121121            ?>
    122122
     
    133133                     * @param string $site_icon_url The site icon URL.
    134134                     */
    135                     $site_icon_url = apply_filters( 'oembed_site_icon_url', $site_icon_url );
     135                    $site_icon_url = apply_filters( 'embed_site_icon_url', $site_icon_url );
    136136
    137137                    printf(
     
    151151                     * @since 4.4.0
    152152                     */
    153                     do_action( 'oembed_content_meta');
     153                    do_action( 'embed_content_meta');
    154154                    ?>
    155155                    <?php if ( get_comments_number() || comments_open() ) : ?>
     
    234234                 * @param string $site_icon_url The site icon URL.
    235235                 */
    236                 $site_icon_url = apply_filters( 'oembed_site_icon_url', $site_icon_url );
     236                $site_icon_url = apply_filters( 'embed_site_icon_url', $site_icon_url );
    237237
    238238                printf(
     
    254254 * @since 4.4.0
    255255 */
    256 do_action( 'oembed_footer' );
     256do_action( 'embed_footer' );
    257257?>
    258258</body>
Note: See TracChangeset for help on using the changeset viewer.