WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/25/2020 12:41:36 PM (19 months ago)
Author:
SergeyBiryukov
Message:

Docs: Replace "AJAX" with "Ajax" in DocBlocks and comments, per the spelling glossary.

Props mukesh27, sabernhardt, SergeyBiryukov.
Fixes #50064.

File:
1 edited

Legend:

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

    r48115 r48168  
    892892    }
    893893
    894     // Protect AJAX actions that could help resolve a fatal error should be available.
     894    // Protect Ajax actions that could help resolve a fatal error should be available.
    895895    if ( is_protected_ajax_action() ) {
    896896        return true;
     
    902902     * This filter is only fired when an endpoint is requested which is not already protected by
    903903     * WordPress core. As such, it exclusively allows providing further protected endpoints in
    904      * addition to the admin backend, login pages and protected AJAX actions.
     904     * addition to the admin backend, login pages and protected Ajax actions.
    905905     *
    906906     * @since 5.2.0
    907907     *
    908      * @param bool $is_protected_endpoint Whether the currently requested endpoint is protected. Default false.
     908     * @param bool $is_protected_endpoint Whether the currently requested endpoint is protected.
     909     *                                    Default false.
    909910     */
    910911    return (bool) apply_filters( 'is_protected_endpoint', false );
     
    912913
    913914/**
    914  * Determines whether we are currently handling an AJAX action that should be protected against WSODs.
     915 * Determines whether we are currently handling an Ajax action that should be protected against WSODs.
    915916 *
    916917 * @since 5.2.0
    917918 *
    918  * @return bool True if the current AJAX action should be protected.
     919 * @return bool True if the current Ajax action should be protected.
    919920 */
    920921function is_protected_ajax_action() {
     
    939940
    940941    /**
    941      * Filters the array of protected AJAX actions.
    942      *
    943      * This filter is only fired when doing AJAX and the AJAX request has an 'action' property.
     942     * Filters the array of protected Ajax actions.
     943     *
     944     * This filter is only fired when doing Ajax and the Ajax request has an 'action' property.
    944945     *
    945946     * @since 5.2.0
    946947     *
    947      * @param string[] $actions_to_protect Array of strings with AJAX actions to protect.
     948     * @param string[] $actions_to_protect Array of strings with Ajax actions to protect.
    948949     */
    949950    $actions_to_protect = (array) apply_filters( 'wp_protected_ajax_actions', $actions_to_protect );
Note: See TracChangeset for help on using the changeset viewer.