Make WordPress Core


Ignore:
Timestamp:
07/10/2016 12:50:21 AM (8 years ago)
Author:
DrewAPicture
Message:

Docs: Standardize capitalization of Ajax throughout core documentation per the core spelling guide.

Ajax, while considered an acronym for Asynchronous JavaScript and XML, is most commonly capitalized only in the first character.

Part props ocean90.
See #32246.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r37985 r38028  
    611611    $expired = $expiration = $cookie_elements['expiration'];
    612612
    613     // Allow a grace period for POST and AJAX requests
     613    // Allow a grace period for POST and Ajax requests
    614614    if ( defined('DOING_AJAX') || 'POST' == $_SERVER['REQUEST_METHOD'] ) {
    615615        $expired += HOUR_IN_SECONDS;
     
    668668    }
    669669
    670     // AJAX/POST grace period set above
     670    // Ajax/POST grace period set above
    671671    if ( $expiration < time() ) {
    672672        $GLOBALS['login_grace_period'] = 1;
     
    10761076if ( !function_exists('check_ajax_referer') ) :
    10771077/**
    1078  * Verifies the AJAX request to prevent processing requests external of the blog.
     1078 * Verifies the Ajax request to prevent processing requests external of the blog.
    10791079 *
    10801080 * @since 2.0.3
     
    11021102
    11031103    /**
    1104      * Fires once the AJAX request has been validated or not.
     1104     * Fires once the Ajax request has been validated or not.
    11051105     *
    11061106     * @since 2.1.0
    11071107     *
    1108      * @param string    $action The AJAX nonce action.
     1108     * @param string    $action The Ajax nonce action.
    11091109     * @param false|int $result False if the nonce is invalid, 1 if the nonce is valid and generated between
    11101110     *                          0-12 hours ago, 2 if the nonce is valid and generated between 12-24 hours ago.
Note: See TracChangeset for help on using the changeset viewer.