WPDev.one
Core Class

WP_Site_Health_Auto_Updates

class WP_Site_Health_Auto_Updates // Constructor: function Object() { [native code] }

Class for testing automatic updates in the WordPress code.

Methods 12 methods

Method / Return Description
__construct()
void

WP_Site_Health_Auto_Updates constructor.

run_tests()
array

Runs tests to determine if auto-updates can run.

test_constants()
(array

Tests if auto-updates related constants are set correctly.

Parameters: $constant: mixed, $value: mixed
test_wp_version_check_attached()
(array

Checks if updates are intercepted by a filter.

test_filters_automatic_updater_disabled()
(array

Checks if automatic updates are disabled by a filter.

test_wp_automatic_updates_disabled()
(array

Checks if automatic updates are disabled.

test_if_failed_update()
(array

Checks if automatic updates have tried to run, but failed, previously.

test_vcs_abspath()
array

Checks if WordPress is controlled by a VCS (Git, Subversion etc).

test_check_wp_filesystem_method()
array

Checks if we can access files without providing credentials.

test_all_files_writable()
(array

Checks if core files are writable by the web user/group.

test_accepts_dev_updates()
(array

Checks if the install is using a development branch and can use nightly packages.

test_accepts_minor_updates()
(array

Checks if the site supports automatic minor updates.

Class Information

Since Version
5.2.0
Source File
wp-admin/includes/class-wp-site-health-auto-updates.php
Advertisement