From 1ca609f8d35c0479d74089958f25a1ffb443fbfb Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 10 Mar 2010 21:19:54 +0000 Subject: [PATCH] Move wp_shortlink_header to template_redirect. Props miqrogroove. see #10640 git-svn-id: https://develop.svn.wordpress.org/trunk@13652 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/default-filters.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php index 61447475bc..6d9b84e514 100644 --- a/wp-includes/default-filters.php +++ b/wp-includes/default-filters.php @@ -191,8 +191,8 @@ add_action( 'wp_head', 'wp_print_head_scripts', 9 ); add_action( 'wp_head', 'wp_generator' ); add_action( 'wp_head', 'rel_canonical' ); add_action( 'wp_footer', 'wp_print_footer_scripts' ); -add_action( 'wp_head', 'wp_shortlink_wp_head' ); -add_action( 'wp', 'wp_shortlink_header' ); +add_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 ); +add_action( 'template_redirect', 'wp_shortlink_header', 11, 0 ); // Feed Generator Tags foreach ( array( 'rss2_head', 'commentsrss2_head', 'rss_head', 'rdf_header', 'atom_head', 'comments_atom_head', 'opml_head', 'app_head' ) as $action ) {