Make WordPress Core


Ignore:
Timestamp:
04/08/2010 02:16:21 AM (15 years ago)
Author:
nacin
Message:

Register a dummy [media] shortcode for strip_shortcodes et al. props belg4mit, Viper007Bond. fixes #12505

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r13860 r14035  
    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') )
Note: See TracChangeset for help on using the changeset viewer.