Make WordPress Core


Ignore:
Timestamp:
06/25/2020 12:41:36 PM (3 years 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-admin/includes/class-wp-site-health.php

    r48121 r48168  
    179179     * Run the SQL version checks.
    180180     *
    181      * These values are used in later tests, but the part of preparing them is more easily managed early
    182      * in the class for ease of access and discovery.
     181     * These values are used in later tests, but the part of preparing them is more easily managed
     182     * early in the class for ease of access and discovery.
    183183     *
    184184     * @since 5.2.0
     
    213213     * Test if `wp_version_check` is blocked.
    214214     *
    215      * It's possible to block updates with the `wp_version_check` filter, but this can't be checked during an
    216      * AJAX call, as the filter is never introduced then.
    217      *
    218      * This filter overrides a normal page request if it's made by an admin through the AJAX call with the
    219      * right query argument to check for this.
     215     * It's possible to block updates with the `wp_version_check` filter, but this can't be checked
     216     * during an Ajax call, as the filter is never introduced then.
     217     *
     218     * This filter overrides a normal page request if it's made by an admin through the Ajax call
     219     * with the right query argument to check for this.
    220220     *
    221221     * @since 5.2.0
     
    234234     * Tests for WordPress version and outputs it.
    235235     *
    236      * Gives various results depending on what kind of updates are available, if any, to encourage the
    237      * user to install security updates as a priority.
     236     * Gives various results depending on what kind of updates are available, if any, to encourage
     237     * the user to install security updates as a priority.
    238238     *
    239239     * @since 5.2.0
     
    335335     * Test if plugins are outdated, or unnecessary.
    336336     *
    337      * The tests checks if your plugins are up to date, and encourages you to remove any that are not in use.
     337     * The tests checks if your plugins are up to date, and encourages you to remove any
     338     * that are not in use.
    338339     *
    339340     * @since 5.2.0
     
    466467     * Test if themes are outdated, or unnecessary.
    467468     *
    468      * The tests checks if your site has a default theme (to fall back on if there is a need), if your themes
    469      * are up to date and, finally, encourages you to remove any themes that are not needed.
     469     * Сhecks if your site has a default theme (to fall back on if there is a need),
     470     * if your themes are up to date and, finally, encourages you to remove any themes
     471     * that are not needed.
    470472     *
    471473     * @since 5.2.0
     
    14091411     * Test if debug information is enabled.
    14101412     *
    1411      * When WP_DEBUG is enabled, errors and information may be disclosed to site visitors, or it may be
    1412      * logged to a publicly accessible file.
    1413      *
    1414      * Debugging is also frequently left enabled after looking for errors on a site, as site owners do
    1415      * not understand the implications of this.
     1413     * When WP_DEBUG is enabled, errors and information may be disclosed to site visitors,
     1414     * or logged to a publicly accessible file.
     1415     *
     1416     * Debugging is also frequently left enabled after looking for errors on a site,
     1417     * as site owners do not understand the implications of this.
    14161418     *
    14171419     * @since 5.2.0
     
    15901592     * Test if scheduled events run as intended.
    15911593     *
    1592      * If scheduled events are not running, this may indicate something with WP_Cron is not working as intended,
    1593      * or that there are orphaned events hanging around from older code.
     1594     * If scheduled events are not running, this may indicate something with WP_Cron is not working
     1595     * as intended, or that there are orphaned events hanging around from older code.
    15941596     *
    15951597     * @since 5.2.0
     
    16621664     * Test if WordPress can run automated background updates.
    16631665     *
    1664      * Background updates in WordPress are primarily used for minor releases and security updates. It's important
    1665      * to either have these working, or be aware that they are intentionally disabled for whatever reason.
     1666     * Background updates in WordPress are primarily used for minor releases and security updates.
     1667     * It's important to either have these working, or be aware that they are intentionally disabled
     1668     * for whatever reason.
    16661669     *
    16671670     * @since 5.2.0
     
    17351738     * Test if loopbacks work as expected.
    17361739     *
    1737      * A loopback is when WordPress queries itself, for example to start a new WP_Cron instance, or when editing a
    1738      * plugin or theme. This has shown itself to be a recurring issue as code can very easily break this interaction.
     1740     * A loopback is when WordPress queries itself, for example to start a new WP_Cron instance,
     1741     * or when editing a plugin or theme. This has shown itself to be a recurring issue,
     1742     * as code can very easily break this interaction.
    17391743     *
    17401744     * @since 5.2.0
     
    20642068         * @param array $test_type {
    20652069         *     An associative array, where the `$test_type` is either `direct` or
    2066          *     `async`, to declare if the test should run via AJAX calls after page load.
     2070         *     `async`, to declare if the test should run via Ajax calls after page load.
    20672071         *
    20682072         *     @type array $identifier {
     
    20722076         *
    20732077         *         @type string $label A friendly label for your test to identify it by.
    2074          *         @type mixed  $test  A callable to perform a direct test, or a string AJAX action to be called
     2078         *         @type mixed  $test  A callable to perform a direct test, or a string Ajax action to be called
    20752079         *                             to perform an async test.
    20762080         *     }
     
    21492153     * Check if any scheduled tasks have been missed.
    21502154     *
    2151      * Returns a boolean value of `true` if a scheduled task has been missed and ends processing. If the list of
    2152      * crons is an instance of WP_Error, return the instance instead of a boolean value.
     2155     * Returns a boolean value of `true` if a scheduled task has been missed and ends processing.
     2156     *
     2157     * If the list of crons is an instance of WP_Error, return the instance instead of a boolean value.
    21532158     *
    21542159     * @since 5.2.0
     
    21742179     * Check if any scheduled tasks are late.
    21752180     *
    2176      * Returns a boolean value of `true` if a scheduled task is late and ends processing. If the list of
    2177      * crons is an instance of WP_Error, return the instance instead of a boolean value.
     2181     * Returns a boolean value of `true` if a scheduled task is late and ends processing.
     2182     *
     2183     * If the list of crons is an instance of WP_Error, return the instance instead of a boolean value.
    21782184     *
    21792185     * @since 5.3.0
Note: See TracChangeset for help on using the changeset viewer.