WordPress.org

Make WordPress Core

Ticket #48246: 48246.diff

File 48246.diff, 747 bytes (added by itowhid06, 8 months ago)
  • src/wp-admin/includes/class-theme-upgrader.php

    diff --git a/src/wp-admin/includes/class-theme-upgrader.php b/src/wp-admin/includes/class-theme-upgrader.php
    index e9cb743e40..f5954cf95c 100644
    a b class Theme_Upgrader extends WP_Upgrader { 
    230230
    231231                remove_action( 'upgrader_process_complete', 'wp_clean_themes_cache', 9 );
    232232                remove_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );
    233                 remove_filter( 'upgrader_post_install', array( $this, 'check_parent_theme_filter' ) );
     233                remove_filter( 'upgrader_post_install', array( $this, 'check_parent_theme_filter' ), 10 );
    234234
    235235                if ( ! $this->result || is_wp_error( $this->result ) ) {
    236236                        return $this->result;