Make WordPress Core

Ticket #50852: 50852.diff

File 50852.diff, 1.8 KB (added by bpayton, 18 months ago)
  • src/wp-admin/includes/class-wp-debug-data.php

    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 { 
    11151115                        }
    11161116
    11171117                        /** 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 );
    11191119
    11201120                        if ( ! is_null( $auto_update_forced ) ) {
    11211121                                $enabled = $auto_update_forced;
    class WP_Debug_Data { 
    12021202                                }
    12031203
    12041204                                /** 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 );
    12061206
    12071207                                if ( ! is_null( $auto_update_forced ) ) {
    12081208                                        $enabled = $auto_update_forced;
    class WP_Debug_Data { 
    12911291                                }
    12921292
    12931293                                /** 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 );
    12951295
    12961296                                if ( ! is_null( $auto_update_forced ) ) {
    12971297                                        $enabled = $auto_update_forced;