From 084ea9a7eab0e172836e2b720c8c9d1c80d4151b Mon Sep 17 00:00:00 2001
From: Brandon Payton <brandon@happycode.net>
Date: Tue, 4 Aug 2020 22:46:06 -0700
Subject: [PATCH] Site Health: correct application of auto_update_theme filter
---
src/wp-admin/includes/class-wp-debug-data.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/wp-admin/includes/class-wp-debug-data.php b/src/wp-admin/includes/class-wp-debug-data.php
index 2f438fb363..d88f406d28 100644
|
a
|
b
|
class WP_Debug_Data { |
| 1115 | 1115 | } |
| 1116 | 1116 | |
| 1117 | 1117 | /** This action is documented in wp-admin/includes/class-wp-automatic-updater.php */ |
| 1118 | | $auto_update_forced = apply_filters( 'auto_update_theme', null, $item ); |
| | 1118 | $auto_update_forced = apply_filters( 'auto_update_theme', null, (object) $item ); |
| 1119 | 1119 | |
| 1120 | 1120 | if ( ! is_null( $auto_update_forced ) ) { |
| 1121 | 1121 | $enabled = $auto_update_forced; |
| … |
… |
class WP_Debug_Data { |
| 1202 | 1202 | } |
| 1203 | 1203 | |
| 1204 | 1204 | /** This action is documented in wp-admin/includes/class-wp-automatic-updater.php */ |
| 1205 | | $auto_update_forced = apply_filters( 'auto_update_theme', null, $item ); |
| | 1205 | $auto_update_forced = apply_filters( 'auto_update_theme', null, (object) $item ); |
| 1206 | 1206 | |
| 1207 | 1207 | if ( ! is_null( $auto_update_forced ) ) { |
| 1208 | 1208 | $enabled = $auto_update_forced; |
| … |
… |
class WP_Debug_Data { |
| 1291 | 1291 | } |
| 1292 | 1292 | |
| 1293 | 1293 | /** This action is documented in wp-admin/includes/class-wp-automatic-updater.php */ |
| 1294 | | $auto_update_forced = apply_filters( 'auto_update_theme', null, $item ); |
| | 1294 | $auto_update_forced = apply_filters( 'auto_update_theme', null, (object) $item ); |
| 1295 | 1295 | |
| 1296 | 1296 | if ( ! is_null( $auto_update_forced ) ) { |
| 1297 | 1297 | $enabled = $auto_update_forced; |