diff options
author | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2025-04-24 12:47:18 +0000 |
---|---|---|
committer | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2025-04-24 12:47:18 +0000 |
commit | 478a5ab5805e67524841913db5aa8bc1228dcf46 (patch) | |
tree | 7ecabad500d7a62567597ef484ee5c15732fd23d | |
parent | 2e4be8b47d7c536e929af86bb7d439fc241cfe83 (diff) | |
download | wordpress-478a5ab5805e67524841913db5aa8bc1228dcf46.tar.gz wordpress-478a5ab5805e67524841913db5aa8bc1228dcf46.zip |
Site Health: Set missing `$transient` in `WP_Debug_Data:get_wp_themes_inactive()`.
This commit addresses a bug where the `update_themes` site transient was not defined before being checked in several `isset()` checks later on in the method.
Follow-up to [59176].
Props justlevine.
See #63268.
git-svn-id: https://develop.svn.wordpress.org/trunk@60181 602fd350-edb4-49c9-b593-d223f7449a82
-rw-r--r-- | src/wp-admin/includes/class-wp-debug-data.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wp-admin/includes/class-wp-debug-data.php b/src/wp-admin/includes/class-wp-debug-data.php index 2cedc33836..cbb57a4b8c 100644 --- a/src/wp-admin/includes/class-wp-debug-data.php +++ b/src/wp-admin/includes/class-wp-debug-data.php @@ -1300,6 +1300,7 @@ class WP_Debug_Data { $active_theme = wp_get_theme(); $parent_theme = $active_theme->parent(); $theme_updates = get_theme_updates(); + $transient = get_site_transient( 'update_themes' ); $auto_updates = array(); $auto_updates_enabled = wp_is_auto_update_enabled_for_type( 'theme' ); |