mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user