Remove references to wp-ajax.php. props TobiasBg, fixes #12400

git-svn-id: https://develop.svn.wordpress.org/trunk@13831 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-03-26 19:44:43 +00:00
parent 4f5a2095a8
commit 0459129e69
3 changed files with 5 additions and 22 deletions

View File

@ -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 File

@ -2037,26 +2037,6 @@ function rel_canonical() {
echo "<link rel='canonical' href='$link' />\n";
}
/**
* 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.
*

View File

@ -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
*/