Skip to content

Commit 3be54dc

Browse files
committed
Docs: Various docblock fixes in Site Health related files, as per documentation standards.
This addresses some files modified in changeset [54113]. See #55646. git-svn-id: https://develop.svn.wordpress.org/trunk@54114 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 912fb76 commit 3be54dc

File tree

2 files changed

+43
-43
lines changed

2 files changed

+43
-43
lines changed

src/wp-admin/includes/class-wp-debug-data.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ public static function debug_data() {
13941394
}
13951395

13961396
/**
1397-
* Add to or modify the debug information shown on the Tools -> Site Health -> Info screen.
1397+
* Filters the debug information shown on the Tools -> Site Health -> Info screen.
13981398
*
13991399
* Plugin or themes may wish to introduce their own debug information without creating
14001400
* additional admin pages. They can utilize this filter to introduce their own sections
@@ -1484,7 +1484,7 @@ public static function get_mysql_var( $mysql_var ) {
14841484
}
14851485

14861486
/**
1487-
* Format the information gathered for debugging, in a manner suitable for copying to a forum or support ticket.
1487+
* Formats the information gathered for debugging, in a manner suitable for copying to a forum or support ticket.
14881488
*
14891489
* @since 5.2.0
14901490
*
@@ -1553,7 +1553,7 @@ public static function format( $info_array, $data_type ) {
15531553
}
15541554

15551555
/**
1556-
* Fetch the total size of all the database tables for the active database user.
1556+
* Fetches the total size of all the database tables for the active database user.
15571557
*
15581558
* @since 5.2.0
15591559
*
@@ -1574,7 +1574,7 @@ public static function get_database_size() {
15741574
}
15751575

15761576
/**
1577-
* Fetch the sizes of the WordPress directories: `wordpress` (ABSPATH), `plugins`, `themes`, and `uploads`.
1577+
* Fetches the sizes of the WordPress directories: `wordpress` (ABSPATH), `plugins`, `themes`, and `uploads`.
15781578
* Intended to supplement the array returned by `WP_Debug_Data::debug_data()`.
15791579
*
15801580
* @since 5.2.0

src/wp-admin/includes/class-wp-site-health.php

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function __construct() {
5656
}
5757

5858
/**
59-
* Output the content of a tab in the Site Health screen.
59+
* Outputs the content of a tab in the Site Health screen.
6060
*
6161
* @since 5.8.0
6262
*
@@ -69,7 +69,7 @@ public function show_site_health_tab( $tab ) {
6969
}
7070

7171
/**
72-
* Return an instance of the WP_Site_Health class, or create one if none exist yet.
72+
* Returns an instance of the WP_Site_Health class, or create one if none exist yet.
7373
*
7474
* @since 5.4.0
7575
*
@@ -161,7 +161,7 @@ public function enqueue_scripts() {
161161
}
162162

163163
/**
164-
* Run a Site Health test directly.
164+
* Runs a Site Health test directly.
165165
*
166166
* @since 5.4.0
167167
*
@@ -194,7 +194,7 @@ private function perform_test( $callback ) {
194194
}
195195

196196
/**
197-
* Run the SQL version checks.
197+
* Runs the SQL version checks.
198198
*
199199
* These values are used in later tests, but the part of preparing them is more easily managed
200200
* early in the class for ease of access and discovery.
@@ -220,7 +220,7 @@ private function prepare_sql_data() {
220220
}
221221

222222
/**
223-
* Test if `wp_version_check` is blocked.
223+
* Tests whether `wp_version_check` is blocked.
224224
*
225225
* It's possible to block updates with the `wp_version_check` filter, but this can't be checked
226226
* during an Ajax call, as the filter is never introduced then.
@@ -342,7 +342,7 @@ public function get_test_wordpress_version() {
342342
}
343343

344344
/**
345-
* Test if plugins are outdated, or unnecessary.
345+
* Tests if plugins are outdated, or unnecessary.
346346
*
347347
* The test checks if your plugins are up to date, and encourages you to remove any
348348
* that are not in use.
@@ -475,7 +475,7 @@ public function get_test_plugin_version() {
475475
}
476476

477477
/**
478-
* Test if themes are outdated, or unnecessary.
478+
* Tests if themes are outdated, or unnecessary.
479479
*
480480
* Сhecks if your site has a default theme (to fall back on if there is a need),
481481
* if your themes are up to date and, finally, encourages you to remove any themes
@@ -716,7 +716,7 @@ public function get_test_theme_version() {
716716
}
717717

718718
/**
719-
* Test if the supplied PHP version is supported.
719+
* Tests if the supplied PHP version is supported.
720720
*
721721
* @since 5.2.0
722722
*
@@ -796,7 +796,7 @@ public function get_test_php_version() {
796796
}
797797

798798
/**
799-
* Check if the passed extension or function are available.
799+
* Checks if the passed extension or function are available.
800800
*
801801
* Make the check for available PHP modules into a simple boolean operator for a cleaner test runner.
802802
*
@@ -835,7 +835,7 @@ private function test_php_extension_availability( $extension_name = null, $funct
835835
}
836836

837837
/**
838-
* Test if required PHP modules are installed on the host.
838+
* Tests if required PHP modules are installed on the host.
839839
*
840840
* This test builds on the recommendations made by the WordPress Hosting Team
841841
* as seen at https://make.wordpress.org/hosting/handbook/handbook/server-environment/#php-extensions
@@ -970,7 +970,7 @@ public function get_test_php_extensions() {
970970
);
971971

972972
/**
973-
* An array representing all the modules we wish to test for.
973+
* Filters the array representing all the modules we wish to test for.
974974
*
975975
* @since 5.2.0
976976
* @since 5.3.0 The `$constant` and `$class` parameters were added.
@@ -1074,7 +1074,7 @@ public function get_test_php_extensions() {
10741074
}
10751075

10761076
/**
1077-
* Test if the PHP default timezone is set to UTC.
1077+
* Tests if the PHP default timezone is set to UTC.
10781078
*
10791079
* @since 5.3.1
10801080
*
@@ -1115,7 +1115,7 @@ public function get_test_php_default_timezone() {
11151115
}
11161116

11171117
/**
1118-
* Test if there's an active PHP session that can affect loopback requests.
1118+
* Tests if there's an active PHP session that can affect loopback requests.
11191119
*
11201120
* @since 5.5.0
11211121
*
@@ -1161,7 +1161,7 @@ public function get_test_php_sessions() {
11611161
}
11621162

11631163
/**
1164-
* Test if the SQL server is up to date.
1164+
* Tests if the SQL server is up to date.
11651165
*
11661166
* @since 5.2.0
11671167
*
@@ -1250,7 +1250,7 @@ public function get_test_sql_server() {
12501250
}
12511251

12521252
/**
1253-
* Test if the database server is capable of using utf8mb4.
1253+
* Tests if the database server is capable of using utf8mb4.
12541254
*
12551255
* @since 5.2.0
12561256
*
@@ -1371,7 +1371,7 @@ public function get_test_utf8mb4_support() {
13711371
}
13721372

13731373
/**
1374-
* Test if the site can communicate with WordPress.org.
1374+
* Tests if the site can communicate with WordPress.org.
13751375
*
13761376
* @since 5.2.0
13771377
*
@@ -1434,7 +1434,7 @@ public function get_test_dotorg_communication() {
14341434
}
14351435

14361436
/**
1437-
* Test if debug information is enabled.
1437+
* Tests if debug information is enabled.
14381438
*
14391439
* When WP_DEBUG is enabled, errors and information may be disclosed to site visitors,
14401440
* or logged to a publicly accessible file.
@@ -1511,7 +1511,7 @@ public function get_test_is_in_debug_mode() {
15111511
}
15121512

15131513
/**
1514-
* Test if your site is serving content over HTTPS.
1514+
* Tests if the site is serving content over HTTPS.
15151515
*
15161516
* Many sites have varying degrees of HTTPS support, the most common of which is sites that have it
15171517
* enabled, but only if you visit the right site address.
@@ -1660,7 +1660,7 @@ public function get_test_https_status() {
16601660
}
16611661

16621662
/**
1663-
* Check if the HTTP API can handle SSL/TLS requests.
1663+
* Checks if the HTTP API can handle SSL/TLS requests.
16641664
*
16651665
* @since 5.2.0
16661666
*
@@ -1703,7 +1703,7 @@ public function get_test_ssl_support() {
17031703
}
17041704

17051705
/**
1706-
* Test if scheduled events run as intended.
1706+
* Tests if scheduled events run as intended.
17071707
*
17081708
* If scheduled events are not running, this may indicate something with WP_Cron is not working
17091709
* as intended, or that there are orphaned events hanging around from older code.
@@ -1775,7 +1775,7 @@ public function get_test_scheduled_events() {
17751775
}
17761776

17771777
/**
1778-
* Test if WordPress can run automated background updates.
1778+
* Tests if WordPress can run automated background updates.
17791779
*
17801780
* Background updates in WordPress are primarily used for minor releases and security updates.
17811781
* It's important to either have these working, or be aware that they are intentionally disabled
@@ -1849,7 +1849,7 @@ public function get_test_background_updates() {
18491849
}
18501850

18511851
/**
1852-
* Test if plugin and theme auto-updates appear to be configured correctly.
1852+
* Tests if plugin and theme auto-updates appear to be configured correctly.
18531853
*
18541854
* @since 5.5.0
18551855
*
@@ -1888,7 +1888,7 @@ public function get_test_plugin_theme_auto_updates() {
18881888
}
18891889

18901890
/**
1891-
* Test if loopbacks work as expected.
1891+
* Tests if loopbacks work as expected.
18921892
*
18931893
* A loopback is when WordPress queries itself, for example to start a new WP_Cron instance,
18941894
* or when editing a plugin or theme. This has shown itself to be a recurring issue,
@@ -1931,7 +1931,7 @@ public function get_test_loopback_requests() {
19311931
}
19321932

19331933
/**
1934-
* Test if HTTP requests are blocked.
1934+
* Tests if HTTP requests are blocked.
19351935
*
19361936
* It's possible to block all outgoing communication (with the possibility of allowing certain
19371937
* hosts) via the HTTP API. This may create problems for users as many features are running as
@@ -2003,7 +2003,7 @@ public function get_test_http_requests() {
20032003
}
20042004

20052005
/**
2006-
* Test if the REST API is accessible.
2006+
* Tests if the REST API is accessible.
20072007
*
20082008
* Various security measures may block the REST API from working, or it may have been disabled in general.
20092009
* This is required for the new block editor to work, so we explicitly test for this.
@@ -2109,7 +2109,7 @@ public function get_test_rest_availability() {
21092109
}
21102110

21112111
/**
2112-
* Test if 'file_uploads' directive in PHP.ini is turned off.
2112+
* Tests if 'file_uploads' directive in PHP.ini is turned off.
21132113
*
21142114
* @since 5.5.0
21152115
*
@@ -2468,7 +2468,7 @@ public function get_test_persistent_object_cache() {
24682468
}
24692469

24702470
/**
2471-
* Return a set of tests that belong to the site status page.
2471+
* Returns a set of tests that belong to the site status page.
24722472
*
24732473
* Each site status test is defined here, they may be `direct` tests, that run on page load, or `async` tests
24742474
* which will run later down the line via JavaScript calls to improve page performance and hopefully also user
@@ -2603,7 +2603,7 @@ public static function get_tests() {
26032603
}
26042604

26052605
/**
2606-
* Add or modify which site status tests are run on a site.
2606+
* Filters which site status tests are run on a site.
26072607
*
26082608
* The site health is determined by a set of tests based on best practices from
26092609
* both the WordPress Hosting Team and web standards in general.
@@ -2669,7 +2669,7 @@ public static function get_tests() {
26692669
}
26702670

26712671
/**
2672-
* Add a class to the body HTML tag.
2672+
* Adds a class to the body HTML tag.
26732673
*
26742674
* Filters the body class string for admin pages and adds our own class for easier styling.
26752675
*
@@ -2690,7 +2690,7 @@ public function admin_body_class( $body_class ) {
26902690
}
26912691

26922692
/**
2693-
* Initiate the WP_Cron schedule test cases.
2693+
* Initiates the WP_Cron schedule test cases.
26942694
*
26952695
* @since 5.2.0
26962696
*/
@@ -2700,7 +2700,7 @@ private function wp_schedule_test_init() {
27002700
}
27012701

27022702
/**
2703-
* Populate our list of cron events and store them to a class-wide variable.
2703+
* Populates the list of cron events and store them to a class-wide variable.
27042704
*
27052705
* @since 5.2.0
27062706
*/
@@ -2733,7 +2733,7 @@ private function get_cron_tasks() {
27332733
}
27342734

27352735
/**
2736-
* Check if any scheduled tasks have been missed.
2736+
* Checks if any scheduled tasks have been missed.
27372737
*
27382738
* Returns a boolean value of `true` if a scheduled task has been missed and ends processing.
27392739
*
@@ -2759,7 +2759,7 @@ public function has_missed_cron() {
27592759
}
27602760

27612761
/**
2762-
* Check if any scheduled tasks are late.
2762+
* Checks if any scheduled tasks are late.
27632763
*
27642764
* Returns a boolean value of `true` if a scheduled task is late and ends processing.
27652765
*
@@ -2789,7 +2789,7 @@ public function has_late_cron() {
27892789
}
27902790

27912791
/**
2792-
* Check for potential issues with plugin and theme auto-updates.
2792+
* Checks for potential issues with plugin and theme auto-updates.
27932793
*
27942794
* Though there is no way to 100% determine if plugin and theme auto-updates are configured
27952795
* correctly, a few educated guesses could be made to flag any conditions that would
@@ -2873,7 +2873,7 @@ public function detect_plugin_theme_auto_update_issues() {
28732873
}
28742874

28752875
/**
2876-
* Run a loopback test on our site.
2876+
* Runs a loopback test on the site.
28772877
*
28782878
* Loopbacks are what WordPress uses to communicate with itself to start up WP_Cron, scheduled posts,
28792879
* make sure plugin or theme edits don't cause site failures and similar.
@@ -2945,7 +2945,7 @@ public function can_perform_loopback() {
29452945
}
29462946

29472947
/**
2948-
* Create a weekly cron event, if one does not already exist.
2948+
* Creates a weekly cron event, if one does not already exist.
29492949
*
29502950
* @since 5.4.0
29512951
*/
@@ -2956,7 +2956,7 @@ public function maybe_create_scheduled_event() {
29562956
}
29572957

29582958
/**
2959-
* Run our scheduled event to check and update the latest site health status for the website.
2959+
* Runs the scheduled event to check and update the latest site health status for the website.
29602960
*
29612961
* @since 5.4.0
29622962
*/
@@ -3203,7 +3203,7 @@ private function check_for_page_caching() {
32033203
}
32043204

32053205
/**
3206-
* Get page cache details.
3206+
* Gets page cache details.
32073207
*
32083208
* @since 6.1.0
32093209
*
@@ -3252,7 +3252,7 @@ private function get_page_cache_detail() {
32523252
}
32533253

32543254
/**
3255-
* Get the threshold below which a response time is considered good.
3255+
* Gets the threshold below which a response time is considered good.
32563256
*
32573257
* @since 6.1.0
32583258
*

0 commit comments

Comments
 (0)