mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
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
This commit is contained in:
parent
40773a776b
commit
7957161819
@ -718,7 +718,7 @@ function single_tag_title($prefix = '', $display = true ) {
|
|||||||
if ( !is_tag() )
|
if ( !is_tag() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$tag = $wp_query->get_queried_object();;
|
$tag = $wp_query->get_queried_object();
|
||||||
|
|
||||||
if ( ! $tag )
|
if ( ! $tag )
|
||||||
return;
|
return;
|
||||||
|
@ -2037,26 +2037,6 @@ function rel_canonical() {
|
|||||||
echo "<link rel='canonical' href='$link' />\n";
|
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.
|
* Return a shortlink for a post, page, attachment, or blog.
|
||||||
*
|
*
|
||||||
|
@ -289,7 +289,10 @@ do_action( 'init' );
|
|||||||
/**
|
/**
|
||||||
* This hook is fired once WP, all plugins, and the theme are fully loaded and instantiated.
|
* 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
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user