WordPress.org

Make WordPress Core

Ticket #12364: 12364.2.patch

File 12364.2.patch, 1.7 KB (added by Viper007Bond, 8 years ago)

Full backwards compatibility

  • wp-includes/default-filters.php

     
    169169
    170170// Actions
    171171add_action( 'wp_head',             'wp_enqueue_scripts',            1     );
    172 add_action( 'wp_head',             'feed_links',                    3     );
     172add_action( 'wp_head',             'feed_links',                    2     );
    173173add_action( 'wp_head',             'feed_links_extra',              3     );
    174174add_action( 'wp_head',             'rsd_link'                             );
    175175add_action( 'wp_head',             'wlwmanifest_link'                     );
  • wp-includes/deprecated.php

     
    24142414}
    24152415
    24162416/**
    2417  * Enable automatic general feed link outputting.
     2417 * Enable/disable automatic general feed link outputting.
    24182418 *
    24192419 * @since 2.8.0
    24202420 * @deprecated 3.0.0
    24212421 * @deprecated Use add_theme_support( 'automatic-feed-links' )
     2422 *
     2423 * @param boolean $add Optional, default is true. Add or remove links. Defaults to true.
    24222424 */
    2423 function automatic_feed_links() {
     2425function automatic_feed_links( $add = true ) {
    24242426        _deprecated_function( __FUNCTION__, '3.0', "add_theme_support( 'automatic-feed-links' )" );
    2425         add_theme_support( 'automatic-feed-links' );
     2427
     2428        if ( $add )
     2429                add_theme_support( 'automatic-feed-links' );
     2430        else {
     2431                remove_action( 'wp_head', 'feed_links_extra', 3 ); // Just do this yourself in 3.0+
     2432        }
    24262433}
     2434 No newline at end of file