WordPress.org

Make WordPress Core

Changeset 49243


Ignore:
Timestamp:
10/20/2020 05:42:36 PM (14 months ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Restore casting $filter_payload to an object in WP_MS_Themes_List_Table::prepare_items().

Follow-up to [48750], [49241].

See #50875.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php

    r49241 r49243  
    180180            );
    181181
    182             $filter_payload = array_merge( $filter_payload, array_intersect_key( $theme_data, $filter_payload ) );
     182            $filter_payload = (object) array_merge( $filter_payload, array_intersect_key( $theme_data, $filter_payload ) );
    183183
    184184            $auto_update_forced = wp_is_auto_update_forced_for_item( 'theme', null, $filter_payload );
Note: See TracChangeset for help on using the changeset viewer.