Skip to content
Browse files

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
  • Loading branch information...
1 parent 40773a7 commit 79571618196f305034e459d10e37a30484b006d4 nacin committed Mar 26, 2010
Showing with 5 additions and 22 deletions.
  1. +1 −1 wp-includes/general-template.php
  2. +0 −20 wp-includes/link-template.php
  3. +4 −1 wp-settings.php
View
2 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;
View
20 wp-includes/link-template.php
@@ -2038,26 +2038,6 @@ function rel_canonical() {
}
/**
- * Prints the ajax url on the front end
- *
- * @since 3.0.0
- **/
-function _wp_ajaxurl() {
- echo '<script type="text/javascript">',
- "var ajaxurl = '", esc_js(site_url('wp-ajax.php')), "';",
- "</script>\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.
*
* This function exists to provide a shortlink tag that all themes and plugins can target. A plugin must hook in to
View
5 wp-settings.php
@@ -289,7 +289,10 @@
/**
* 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
*/

0 comments on commit 7957161

Please sign in to comment.
Something went wrong with that request. Please try again.