[wp-trac] [WordPress Trac] #50793: Site Health: Incorrect file path in require_once
WordPress Trac
noreply at wordpress.org
Tue Jul 28 01:57:40 UTC 2020
#50793: Site Health: Incorrect file path in require_once
--------------------------+-----------------------
Reporter: dd32 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.5
Component: Site Health | Version: trunk
Severity: normal | Keywords: has-patch
Focuses: |
--------------------------+-----------------------
While looking through Site Health, I noticed that there's a `require_once`
which includes a typo in a filename.
My guess is that this require_once isn't actually required here, as
otherwise this should've been noticed already, but since there's no harm
in including it, might as well fix the typo to avoid a potential fatal
error.
{{{
#!diff
diff --git a/src/wp-admin/includes/class-wp-site-health-auto-updates.php
b/src/wp-admin/includes/class-wp-site-health-auto-updates.php
index b713404e4d..a7ebf07d49 100644
--- a/src/wp-admin/includes/class-wp-site-health-auto-updates.php
+++ b/src/wp-admin/includes/class-wp-site-health-auto-updates.php
@@ -167,7 +167,7 @@ class WP_Site_Health_Auto_Updates {
*/
public function test_wp_automatic_updates_disabled() {
if ( ! class_exists( 'WP_Automatic_Updater' ) ) {
- require_once ABSPATH . 'wp-admin/includes/class-
wp-automatic-updates.php';
+ require_once ABSPATH . 'wp-admin/includes/class-
wp-automatic-updater.php';
}
$auto_updates = new WP_Automatic_Updater();
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50793>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list