Make WordPress Core


Ignore:
Timestamp:
07/23/2020 07:37:57 AM (4 years ago)
Author:
johnbillion
Message:

Docs: Further corrections and improvements to various inline docblocks.

See #49572

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r48560 r48576  
    160160         *     An associative array of test result data.
    161161         *
    162          *     @param string $label       A label describing the test, and is used as a header in the output.
    163          *     @param string $status      The status of the test, which can be a value of `good`, `recommended` or `critical`.
    164          *     @param array  $badge {
     162         *     @type string $label       A label describing the test, and is used as a header in the output.
     163         *     @type string $status      The status of the test, which can be a value of `good`, `recommended` or `critical`.
     164         *     @type array  $badge {
    165165         *         Tests are put into categories which have an associated badge shown, these can be modified and assigned here.
    166166         *
    167          *         @param string $label The test label, for example `Performance`.
    168          *         @param string $color Default `blue`. A string representing a color to use for the label.
     167         *         @type string $label The test label, for example `Performance`.
     168         *         @type string $color Default `blue`. A string representing a color to use for the label.
    169169         *     }
    170          *     @param string $description A more descriptive explanation of what the test looks for, and why it is important for the end user.
    171          *     @param string $actions     An action to direct the user to where they can resolve the issue, if one exists.
    172          *     @param string $test        The name of the test being ran, used as a reference point.
     170         *     @type string $description A more descriptive explanation of what the test looks for, and why it is important for the end user.
     171         *     @type string $actions     An action to direct the user to where they can resolve the issue, if one exists.
     172         *     @type string $test        The name of the test being ran, used as a reference point.
    173173         * }
    174174         */
     
    954954         *
    955955         * @param array $modules {
    956          *     An associated array of modules to test for.
     956         *     An associative array of modules to test for.
    957957         *
    958          *     array $module {
    959          *         An associated array of module properties used during testing.
     958         *     @type array ...$0 {
     959         *         An associative array of module properties used during testing.
    960960         *         One of either `$function` or `$extension` must be provided, or they will fail by default.
    961961         *
    962          *         string $function     Optional. A function name to test for the existence of.
    963          *         string $extension    Optional. An extension to check if is loaded in PHP.
    964          *         string $constant     Optional. A constant name to check for to verify an extension exists.
    965          *         string $class        Optional. A class name to check for to verify an extension exists.
    966          *         bool   $required     Is this a required feature or not.
    967          *         string $fallback_for Optional. The module this module replaces as a fallback.
     962         *         @type string $function     Optional. A function name to test for the existence of.
     963         *         @type string $extension    Optional. An extension to check if is loaded in PHP.
     964         *         @type string $constant     Optional. A constant name to check for to verify an extension exists.
     965         *         @type string $class        Optional. A class name to check for to verify an extension exists.
     966         *         @type bool   $required     Is this a required feature or not.
     967         *         @type string $fallback_for Optional. The module this module replaces as a fallback.
    968968         *     }
    969969         * }
     
    23432343     */
    23442344    function detect_plugin_theme_auto_update_issues() {
     2345        /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
    23452346        $test_plugins_enabled   = apply_filters( 'auto_update_plugin', true );
     2347        /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
    23462348        $test_themes_enabled    = apply_filters( 'auto_update_theme', true );
    23472349        $ui_enabled_for_plugins = wp_is_auto_update_enabled_for_type( 'plugin' );
Note: See TracChangeset for help on using the changeset viewer.