Changeset 48576 for trunk/src/wp-admin/includes/class-wp-site-health.php
- Timestamp:
- 07/23/2020 07:37:57 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-health.php
r48560 r48576 160 160 * An associative array of test result data. 161 161 * 162 * @ paramstring $label A label describing the test, and is used as a header in the output.163 * @ paramstring $status The status of the test, which can be a value of `good`, `recommended` or `critical`.164 * @ paramarray $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 { 165 165 * Tests are put into categories which have an associated badge shown, these can be modified and assigned here. 166 166 * 167 * @ paramstring $label The test label, for example `Performance`.168 * @ paramstring $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. 169 169 * } 170 * @ paramstring $description A more descriptive explanation of what the test looks for, and why it is important for the end user.171 * @ paramstring $actions An action to direct the user to where they can resolve the issue, if one exists.172 * @ paramstring $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. 173 173 * } 174 174 */ … … 954 954 * 955 955 * @param array $modules { 956 * An associat edarray of modules to test for.956 * An associative array of modules to test for. 957 957 * 958 * array $module{959 * An associat edarray of module properties used during testing.958 * @type array ...$0 { 959 * An associative array of module properties used during testing. 960 960 * One of either `$function` or `$extension` must be provided, or they will fail by default. 961 961 * 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. 968 968 * } 969 969 * } … … 2343 2343 */ 2344 2344 function detect_plugin_theme_auto_update_issues() { 2345 /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */ 2345 2346 $test_plugins_enabled = apply_filters( 'auto_update_plugin', true ); 2347 /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */ 2346 2348 $test_themes_enabled = apply_filters( 'auto_update_theme', true ); 2347 2349 $ui_enabled_for_plugins = wp_is_auto_update_enabled_for_type( 'plugin' );
Note: See TracChangeset
for help on using the changeset viewer.