WordPress.org

Make WordPress Core

Changeset 38028


Ignore:
Timestamp:
07/10/2016 12:50:21 AM (3 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.

Location:
trunk/src
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/admin-ajax.php

    r37741 r38028  
    11<?php
    22/**
    3  * WordPress AJAX Process Execution.
     3 * WordPress Ajax Process Execution
    44 *
    55 * @package WordPress
     
    1010
    1111/**
    12  * Executing AJAX process.
     12 * Executing Ajax process.
    1313 *
    1414 * @since 2.1.0
     
    8282if ( is_user_logged_in() ) {
    8383    /**
    84      * Fires authenticated AJAX actions for logged-in users.
     84     * Fires authenticated Ajax actions for logged-in users.
    8585     *
    8686     * The dynamic portion of the hook name, `$_REQUEST['action']`,
    87      * refers to the name of the AJAX action callback being fired.
     87     * refers to the name of the Ajax action callback being fired.
    8888     *
    8989     * @since 2.1.0
     
    9292} else {
    9393    /**
    94      * Fires non-authenticated AJAX actions for logged-out users.
     94     * Fires non-authenticated Ajax actions for logged-out users.
    9595     *
    9696     * The dynamic portion of the hook name, `$_REQUEST['action']`,
    97      * refers to the name of the AJAX action callback being fired.
     97     * refers to the name of the Ajax action callback being fired.
    9898     *
    9999     * @since 2.8.0
  • trunk/src/wp-admin/custom-background.php

    r34566 r38028  
    411411
    412412    /**
    413      * AJAX handler for adding custom background context to an attachment.
     413     * Ajax handler for adding custom background context to an attachment.
    414414     *
    415415     * Triggered when the user adds a new background image from the
  • trunk/src/wp-admin/includes/ajax-actions.php

    r38022 r38028  
    3333
    3434        /**
    35          * Filters Heartbeat AJAX response in no-privilege environments.
     35         * Filters Heartbeat Ajax response in no-privilege environments.
    3636         *
    3737         * @since 3.6.0
     
    4545
    4646    /**
    47      * Filters Heartbeat AJAX response when no data is passed.
     47     * Filters Heartbeat Ajax response when no data is passed.
    4848     *
    4949     * @since 3.6.0
     
    133133
    134134    /**
    135      * Filters the minimum number of characters required to fire a tag search via AJAX.
     135     * Filters the minimum number of characters required to fire a tag search via Ajax.
    136136     *
    137137     * @since 4.0.0
     
    336336 * Sends back current comment total and new page links if they need to be updated.
    337337 *
    338  * Contrary to normal success AJAX response ("1"), die with time() on success.
     338 * Contrary to normal success Ajax response ("1"), die with time() on success.
    339339 *
    340340 * @access private
     
    21652165
    21662166/**
    2167  * AJAX handler for setting the featured image for an attachment.
     2167 * Ajax handler for setting the featured image for an attachment.
    21682168 *
    21692169 * @since 4.0.0
     
    23922392
    23932393    /**
    2394      * Filters the arguments passed to WP_Query during an AJAX
     2394     * Filters the arguments passed to WP_Query during an Ajax
    23952395     * call for querying attachments.
    23962396     *
     
    29092909
    29102910/**
    2911  * Apply [embed] AJAX handlers to a string.
     2911 * Apply [embed] Ajax handlers to a string.
    29122912 *
    29132913 * @since 4.0.0
     
    30703070
    30713071/**
    3072  * AJAX handler for destroying multiple open sessions for a user.
     3072 * Ajax handler for destroying multiple open sessions for a user.
    30733073 *
    30743074 * @since 4.1.0
     
    31053105
    31063106/**
    3107  * AJAX handler for saving a post from Press This.
     3107 * Ajax handler for saving a post from Press This.
    31083108 *
    31093109 * @since 4.2.0
     
    31203120
    31213121/**
    3122  * AJAX handler for creating new category from Press This.
     3122 * Ajax handler for creating new category from Press This.
    31233123 *
    31243124 * @since 4.2.0
     
    31353135
    31363136/**
    3137  * AJAX handler for cropping an image.
     3137 * Ajax handler for cropping an image.
    31383138 *
    31393139 * @since 4.3.0
     
    32793279
    32803280/**
    3281  * AJAX handler for installing a theme.
     3281 * Ajax handler for installing a theme.
    32823282 *
    32833283 * @since 4.6.0
     
    33753375
    33763376/**
    3377  * AJAX handler for updating a theme.
     3377 * Ajax handler for updating a theme.
    33783378 *
    33793379 * @since 4.6.0
     
    34563456
    34573457/**
    3458  * AJAX handler for deleting a theme.
     3458 * Ajax handler for deleting a theme.
    34593459 *
    34603460 * @since 4.6.0
     
    35233523
    35243524/**
    3525  * AJAX handler for installing a plugin.
     3525 * Ajax handler for installing a plugin.
    35263526 *
    35273527 * @since 4.6.0
     
    36093609
    36103610/**
    3611  * AJAX handler for updating a plugin.
     3611 * Ajax handler for updating a plugin.
    36123612 *
    36133613 * @since 4.2.0
     
    37113711
    37123712/**
    3713  * AJAX handler for deleting a plugin.
     3713 * Ajax handler for deleting a plugin.
    37143714 *
    37153715 * @since 4.6.0
     
    37763776
    37773777/**
    3778  * AJAX handler for searching plugins.
     3778 * Ajax handler for searching plugins.
    37793779 *
    37803780 * @since 4.6.0
     
    38173817
    38183818/**
    3819  * AJAX handler for searching plugins to install.
     3819 * Ajax handler for searching plugins to install.
    38203820 *
    38213821 * @since 4.6.0
     
    38553855
    38563856/**
    3857  * AJAX handler for testing if a URL exists.
     3857 * Ajax handler for testing if a URL exists.
    38583858 *
    38593859 * Used in the editor.
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r37912 r38028  
    124124     *     @type string $singular Singular label for an object being listed, e.g. 'post'.
    125125     *                            Default empty
    126      *     @type bool   $ajax     Whether the list table supports AJAX. This includes loading
     126     *     @type bool   $ajax     Whether the list table supports Ajax. This includes loading
    127127     *                            and sorting data, for example. If true, the class will call
    128128     *                            the _js_vars() method in the footer to provide variables
    129      *                            to any scripts handling AJAX events. Default false.
     129     *                            to any scripts handling Ajax events. Default false.
    130130     *     @type string $screen   String containing the hook name used to determine the current
    131131     *                            screen. If left null, the current screen will be automatically set.
  • trunk/src/wp-admin/includes/class-wp-press-this.php

    r37537 r38028  
    9797
    9898    /**
    99      * AJAX handler for saving the post as draft or published.
     99     * Ajax handler for saving the post as draft or published.
    100100     *
    101101     * @since 4.2.0
     
    190190
    191191    /**
    192      * AJAX handler for adding a new category.
     192     * Ajax handler for adding a new category.
    193193     *
    194194     * @since 4.2.0
  • trunk/src/wp-admin/includes/class-wp-themes-list-table.php

    r37297 r38028  
    4343     */
    4444    public function ajax_user_can() {
    45         // Do not check edit_theme_options here. AJAX calls for available themes require switch_themes.
     45        // Do not check edit_theme_options here. Ajax calls for available themes require switch_themes.
    4646        return current_user_can( 'switch_themes' );
    4747    }
  • trunk/src/wp-admin/includes/dashboard.php

    r37972 r38028  
    956956 * widget options of $widget_id. If cached, call $callback, a function that
    957957 * echoes out output for this widget. If not cache, echo a "Loading..." stub
    958  * which is later replaced by AJAX call (see top of /wp-admin/index.php)
     958 * which is later replaced by Ajax call (see top of /wp-admin/index.php)
    959959 *
    960960 * @since 2.5.0
  • trunk/src/wp-admin/includes/template.php

    r37985 r38028  
    204204    foreach ( (array) $terms as $term ) {
    205205        $popular_ids[] = $term->term_id;
    206         if ( !$echo ) // hack for AJAX use
     206        if ( !$echo ) // Hack for Ajax use.
    207207            continue;
    208208        $id = "popular-$taxonomy-$term->term_id";
  • trunk/src/wp-admin/link.php

    r29206 r38028  
    44 *
    55 * This page is accessed by the link management pages and handles the forms and
    6  * AJAX processes for link actions.
     6 * Ajax processes for link actions.
    77 *
    88 * @package WordPress
  • trunk/src/wp-includes/class-wp-ajax-response.php

    r37487 r38028  
    11<?php
    22/**
    3  * Send XML response back to AJAX request.
     3 * Send XML response back to Ajax request.
    44 *
    55 * @package WordPress
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r37985 r38028  
    306306
    307307    /**
    308      * Return true if it's an AJAX request.
     308     * Return true if it's an Ajax request.
    309309     *
    310310     * @since 3.4.0
     
    312312     * @access public
    313313     *
    314      * @param string|null $action Whether the supplied AJAX action is being run.
    315      * @return bool True if it's an AJAX request, false otherwise.
     314     * @param string|null $action Whether the supplied Ajax action is being run.
     315     * @return bool True if it's an Ajax request, false otherwise.
    316316     */
    317317    public function doing_ajax( $action = null ) {
     
    334334    /**
    335335     * Custom wp_die wrapper. Returns either the standard message for UI
    336      * or the AJAX message.
    337      *
    338      * @since 3.4.0
    339      *
    340      * @param mixed $ajax_message AJAX return
     336     * or the Ajax message.
     337     *
     338     * @since 3.4.0
     339     *
     340     * @param mixed $ajax_message Ajax return
    341341     * @param mixed $message UI message
    342342     */
     
    354354
    355355    /**
    356      * Return the AJAX wp_die() handler if it's a customized request.
     356     * Return the Ajax wp_die() handler if it's a customized request.
    357357     *
    358358     * @since 3.4.0
     
    610610
    611611    /**
    612      * Prevents AJAX requests from following redirects when previewing a theme
     612     * Prevents Ajax requests from following redirects when previewing a theme
    613613     * by issuing a 200 response instead of a 30x.
    614614     *
     
    763763    /**
    764764     * Prevent sending a 404 status when returning the response for the customize
    765      * preview, since it causes the jQuery AJAX to fail. Send 200 instead.
     765     * preview, since it causes the jQuery Ajax to fail. Send 200 instead.
    766766     *
    767767     * @since 4.0.0
     
    11431143
    11441144        /**
    1145          * Filters response data for a successful customize_save AJAX request.
     1145         * Filters response data for a successful customize_save Ajax request.
    11461146         *
    11471147         * This filter does not apply if there was a nonce or authentication failure.
  • trunk/src/wp-includes/class-wp-embed.php

    r37627 r38028  
    3939        add_filter( 'the_content', array( $this, 'autoembed' ), 8 );
    4040
    41         // After a post is saved, cache oEmbed items via AJAX
     41        // After a post is saved, cache oEmbed items via Ajax
    4242        add_action( 'edit_form_advanced', array( $this, 'maybe_run_ajax_cache' ) );
    4343        add_action( 'edit_page_form', array( $this, 'maybe_run_ajax_cache' ) );
     
    7676    /**
    7777     * If a post/page was saved, then output JavaScript to make
    78      * an AJAX request that will call WP_Embed::cache_oembed().
     78     * an Ajax request that will call WP_Embed::cache_oembed().
    7979     */
    8080    public function maybe_run_ajax_cache() {
  • trunk/src/wp-includes/functions.php

    r38015 r38028  
    25702570    if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
    25712571        /**
    2572          * Filters callback for killing WordPress execution for AJAX requests.
     2572         * Filters the callback for killing WordPress execution for Ajax requests.
    25732573         *
    25742574         * @since 3.4.0
     
    25792579    } elseif ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) {
    25802580        /**
    2581          * Filters callback for killing WordPress execution for XML-RPC requests.
     2581         * Filters the callback for killing WordPress execution for XML-RPC requests.
    25822582         *
    25832583         * @since 3.4.0
     
    25882588    } else {
    25892589        /**
    2590          * Filters callback for killing WordPress execution for all non-AJAX, non-XML-RPC requests.
     2590         * Filters the callback for killing WordPress execution for all non-Ajax, non-XML-RPC requests.
    25912591         *
    25922592         * @since 3.0.0
  • 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.
  • trunk/src/wp-settings.php

    r38021 r38028  
    425425 * This hook is fired once WP, all plugins, and the theme are fully loaded and instantiated.
    426426 *
    427  * AJAX requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for
     427 * Ajax requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for
    428428 * users not logged in.
    429429 *
Note: See TracChangeset for help on using the changeset viewer.