diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php index 26d6aa3135..44c91b9743 100644 --- a/wp-includes/default-filters.php +++ b/wp-includes/default-filters.php @@ -169,7 +169,7 @@ add_filter( 'atom_service_url','atom_service_url_filter' ); // Actions add_action( 'wp_head', 'wp_enqueue_scripts', 1 ); -add_action( 'wp_head', 'feed_links', 3 ); +add_action( 'wp_head', 'feed_links', 2 ); add_action( 'wp_head', 'feed_links_extra', 3 ); add_action( 'wp_head', 'rsd_link' ); add_action( 'wp_head', 'wlwmanifest_link' ); diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index c4618bc53b..2dad872b6f 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -2414,13 +2414,19 @@ function update_usermeta( $user_id, $meta_key, $meta_value ) { } /** - * Enable automatic general feed link outputting. + * Enable/disable automatic general feed link outputting. * * @since 2.8.0 * @deprecated 3.0.0 * @deprecated Use add_theme_support( 'automatic-feed-links' ) + * + * @param boolean $add Optional, default is true. Add or remove links. Defaults to true. */ -function automatic_feed_links() { +function automatic_feed_links( $add = true ) { _deprecated_function( __FUNCTION__, '3.0', "add_theme_support( 'automatic-feed-links' )" ); - add_theme_support( 'automatic-feed-links' ); + + if ( $add ) + add_theme_support( 'automatic-feed-links' ); + else + remove_action( 'wp_head', 'feed_links_extra', 3 ); // Just do this yourself in 3.0+ } \ No newline at end of file