Make WordPress Core


Ignore:
Timestamp:
07/29/2015 12:01:22 AM (10 years ago)
Author:
azaozz
Message:

Use the embed_maybe_make_link filter to test WP_Embed::autoembed().
See #33106.

File:
1 edited

Legend:

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

    r33469 r33470  
    130130     */
    131131    public function shortcode( $attr, $url = '' ) {
    132         // This filter can be used to output custom HTML instead of allowing oEmbed to run.
    133         $custom = apply_filters( 'wp_embed_shortcode_custom', false, $attr, $url );
    134         if ( false !== $custom ) {
    135             return $custom;
    136         }
    137        
    138132        $post = get_post();
    139133
Note: See TracChangeset for help on using the changeset viewer.