Hi,
Receiving the following warning on Dashboard > Updates page:
Warning: Undefined variable $checkout in /xyz/wp-admin/includes/class-wp-automatic-updater.php on line 175
I guess as a result of this constant setting in my wp-config.php:
define( 'WP_AUTO_UPDATE_CORE', false );
Best
Actually this is a core bug that has been fixed upstream:
https://core.trac.wordpress.org/ticket/58563
Thanks for raising this, we will try to get it fixed.
PR created now:
ClassicPress:develop
← ClassicPress:merge/wp-r56124
opened 03:19PM - 27 Apr 24 UTC
## Description
WP-r56124: Upgrade/Install: Initialize the local `$checkout` var… iable in `WP_Automatic_Updater::is_vcs_checkout()`.
This avoids an `Undefined variable $checkout` PHP warning if all of the directories checked for access are disallowed due to the PHP `open_basedir` restrictions.
Follow-up to https://core.trac.wordpress.org/changeset/55425.
WP:Props jqz, costdev, audrasjb.
Fixes https://core.trac.wordpress.org/ticket/58563.
---
Merges https://core.trac.wordpress.org/changeset/56124 / WordPress/wordpress-develop@62b286f9b2 to ClassicPress.
## Motivation and context
Backport that fixes an issue reports on the forums:
https://forums.classicpress.net/t/warning-undefined-variable-checkout/5194/2
## How has this been tested?
Backport and this includes unit tests.
## Screenshots
N/A
## Types of changes
- Bug fix
2 Likes
system
Closed
April 29, 2024, 12:04pm
3
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.