- Timestamp:
- 10/18/2021 05:51:17 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php
r51661 r51919 157 157 * @return array|false The test results. False if the auto-updates failed. 158 158 */ 159 function test_if_failed_update() {159 public function test_if_failed_update() { 160 160 $failed = get_site_option( 'auto_core_update_failed' ); 161 161 … … 273 273 * @return array The test results. 274 274 */ 275 function test_check_wp_filesystem_method() {275 public function test_check_wp_filesystem_method() { 276 276 // Make sure the `request_filesystem_credentials()` function is available during our REST API call. 277 277 if ( ! function_exists( 'request_filesystem_credentials' ) ) { … … 307 307 * @return array|false The test results. False if they're not writeable. 308 308 */ 309 function test_all_files_writable() {309 public function test_all_files_writable() { 310 310 global $wp_filesystem; 311 311 … … 392 392 * @return array|false The test results. False if it isn't a development version. 393 393 */ 394 function test_accepts_dev_updates() {394 public function test_accepts_dev_updates() { 395 395 require ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z 396 396 // Only for dev versions. … … 430 430 * @return array The test results. 431 431 */ 432 function test_accepts_minor_updates() {432 public function test_accepts_minor_updates() { 433 433 if ( defined( 'WP_AUTO_UPDATE_CORE' ) && false === WP_AUTO_UPDATE_CORE ) { 434 434 return array(
Note: See TracChangeset
for help on using the changeset viewer.