WordPress.org

Make WordPress Core

Changeset 48687


Ignore:
Timestamp:
07/29/2020 03:18:39 PM (9 months ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [48390].

Props afragen, sabernhardt.
Reviewed by desrosj, SergeyBiryukov.
Merges [48685] to the 5.5 branch.
Fixes #9757.

Location:
branches/5.5
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/5.5

    • Property svn:mergeinfo changed
      /trunk (added)merged: 48685
  • branches/5.5/src/wp-admin/includes/class-plugin-upgrader.php

    r48666 r48687  
    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.
  • branches/5.5/src/wp-admin/includes/class-theme-upgrader.php

    r48666 r48687  
    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.