Changeset 59340
- Timestamp:
- 11/04/2024 03:23:26 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php
r58921 r59340 67 67 * @param bool|string|array $value The value that the constant should be, if set, 68 68 * or an array of acceptable values. 69 * @return array The test results. 69 * @return array|null The test results if there are any constants set incorrectly, 70 * or null if the test passed. 70 71 */ 71 72 public function test_constants( $constant, $value ) { … … 83 84 ); 84 85 } 86 87 return null; 85 88 } 86 89 … … 90 93 * @since 5.2.0 91 94 * 92 * @return array The test results. 95 * @return array|null The test results if wp_version_check() is disabled, 96 * or null if the test passed. 93 97 */ 94 98 public function test_wp_version_check_attached() { … … 105 109 ); 106 110 } 111 112 return null; 107 113 } 108 114 … … 112 118 * @since 5.2.0 113 119 * 114 * @return array The test results. 120 * @return array|null The test results if the {@see 'automatic_updater_disabled'} filter is set, 121 * or null if the test passed. 115 122 */ 116 123 public function test_filters_automatic_updater_disabled() { … … 126 133 ); 127 134 } 135 136 return null; 128 137 } 129 138 … … 133 142 * @since 5.3.0 134 143 * 135 * @return array|false The test results . False if auto-updates are enabled.144 * @return array|false The test results if auto-updates are disabled, false otherwise. 136 145 */ 137 146 public function test_wp_automatic_updates_disabled() { … … 157 166 * @since 5.2.0 158 167 * 159 * @return array|false The test results . False if the auto-updates failed.168 * @return array|false The test results if auto-updates previously failed, false otherwise. 160 169 */ 161 170 public function test_if_failed_update() { … … 313 322 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. 314 323 * 315 * @return array|false The test results. False if they're not writeable. 324 * @return array|false The test results if at least some of WordPress core files are writeable, 325 * or if a list of the checksums could not be retrieved from WordPress.org. 326 * False if the core files are not writeable. 316 327 */ 317 328 public function test_all_files_writable() { … … 398 409 * @since 5.2.0 399 410 * 400 * @return array|false The test results. False if it isn't a development version. 411 * @return array|false|null The test results if development updates are blocked. 412 * False if it isn't a development version. Null if the test passed. 401 413 */ 402 414 public function test_accepts_dev_updates() { … … 429 441 ); 430 442 } 443 444 return null; 431 445 } 432 446 … … 436 450 * @since 5.2.0 437 451 * 438 * @return array The test results. 452 * @return array|null The test results if minor updates are blocked, 453 * or null if the test passed. 439 454 */ 440 455 public function test_accepts_minor_updates() { … … 461 476 ); 462 477 } 478 479 return null; 463 480 } 464 481 }
Note: See TracChangeset
for help on using the changeset viewer.