WordPress.org

Make WordPress Core

Ticket #12505: 12505.patch

File 12505.patch, 585 bytes (added by Viper007Bond, 5 years ago)

Register placeholder shortcode for strip_shortcode() purposes

  • wp-includes/media.php

     
    990990                // Hack to get the [embed] shortcode to run before wpautop() 
    991991                add_filter( 'the_content', array(&$this, 'run_shortcode'), 8 ); 
    992992 
     993                // Shortcode placeholder for strip_shortcodes() 
     994                add_shortcode( 'embed', '__return_false' ); 
     995 
    993996                // Attempts to embed all URLs in a post 
    994997                if ( get_option('embed_autourls') ) 
    995998                        add_filter( 'the_content', array(&$this, 'autoembed'), 8 );