From 79571618196f305034e459d10e37a30484b006d4 Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 26 Mar 2010 19:44:43 +0000 Subject: [PATCH] Remove references to wp-ajax.php. props TobiasBg, fixes #12400 git-svn-id: http://svn.automattic.com/wordpress/trunk@13831 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 2 +- wp-includes/link-template.php | 20 -------------------- wp-settings.php | 5 ++++- 3 files changed, 5 insertions(+), 22 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 5bebf9b73..29e38b63b 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -718,7 +718,7 @@ function single_tag_title($prefix = '', $display = true ) { if ( !is_tag() ) return; - $tag = $wp_query->get_queried_object();; + $tag = $wp_query->get_queried_object(); if ( ! $tag ) return; diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 730874bae..dd4f941bb 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -2037,26 +2037,6 @@ function rel_canonical() { echo "\n"; } -/** - * Prints the ajax url on the front end - * - * @since 3.0.0 - **/ -function _wp_ajaxurl() { - echo '\n"; -} - -/** - * Hooks _wp_ajaxurl() to wp_head - * - * @since 3.0.0 - **/ -function wp_ajaxurl() { - add_action('wp_head', '_wp_ajaxurl', 1); -} - /** * Return a shortlink for a post, page, attachment, or blog. * diff --git a/wp-settings.php b/wp-settings.php index 91971b655..8437cfb38 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -289,7 +289,10 @@ do_action( 'init' ); /** * This hook is fired once WP, all plugins, and the theme are fully loaded and instantiated. * - * AJAX requests should use wp-ajax.php and wp-admin/admin-ajax.php instead. + * AJAX requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for + * users not logged in. + * + * @link http://codex.wordpress.org/AJAX_in_Plugins * * @since 3.0.0 */