Rename wp.xhr to wp.ajax to match admin-ajax.php (which it uses), jQuery.ajax (which it wraps), etc. see #24424.

git-svn-id: https://develop.svn.wordpress.org/trunk@24652 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2013-07-11 00:20:36 +00:00
parent b970bdd914
commit 31322f220a
4 changed files with 13 additions and 13 deletions

View File

@@ -269,7 +269,7 @@ function wp_default_scripts( &$scripts ) {
$scripts->add( 'wp-util', "/wp-includes/js/wp-util$suffix.js", array('underscore', 'jquery'), false, 1 );
did_action( 'init' ) && $scripts->localize( 'wp-util', '_wpUtilSettings', array(
'xhr' => array(
'ajax' => array(
'url' => admin_url( 'admin-ajax.php', 'relative' ),
),
) );