WordPress.org

Make WordPress Core

Changeset 48685


Ignore:
Timestamp:
07/29/2020 01:07:35 PM (2 months ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Pass correct argument to clear_destination in Theme_Upgrader::install().

Follow-up to [48390].

Props afragen, sabernhardt.
Fixes #9757.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-plugin-upgrader.php

    r48666 r48685  
    128128
    129129        add_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );
     130
    130131        if ( $parsed_args['clear_update_cache'] ) {
    131132            // Clear cache so wp_update_plugins() knows about the new plugin.
  • trunk/src/wp-admin/includes/class-theme-upgrader.php

    r48666 r48685  
    240240        add_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );
    241241        add_filter( 'upgrader_post_install', array( $this, 'check_parent_theme_filter' ), 10, 3 );
     242
    242243        if ( $parsed_args['clear_update_cache'] ) {
    243244            // Clear cache so wp_update_themes() knows about the new theme.
     
    249250                'package'           => $package,
    250251                'destination'       => get_theme_root(),
    251                 'clear_destination' => $args['overwrite_package'],
     252                'clear_destination' => $parsed_args['overwrite_package'],
    252253                'clear_working'     => true,
    253254                'hook_extra'        => array(
Note: See TracChangeset for help on using the changeset viewer.