Make WordPress Core


Ignore:
Timestamp:
07/11/2013 12:20:36 AM (13 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/script-loader.php

    r24578 r24652  
    270270    $scripts->add( 'wp-util', "/wp-includes/js/wp-util$suffix.js", array('underscore', 'jquery'), false, 1 );
    271271    did_action( 'init' ) && $scripts->localize( 'wp-util', '_wpUtilSettings', array(
    272         'xhr' => array(
     272        'ajax' => array(
    273273            'url' => admin_url( 'admin-ajax.php', 'relative' ),
    274274        ),
Note: See TracChangeset for help on using the changeset viewer.