$this->strings
['process_success_specific'
] =
$this->strings
['parent_theme_install_success'
];
$this->skin->
feedback( 'parent_theme_prepare_install',
$api->name,
$api->version
);
add_filter( 'install_theme_complete_actions', '__return_false', 999
); // Don't show any actions after installing the theme.
// Install the parent theme.
$parent_result =
$this->
run( array
( 'package' =>
$api->download_link,
'destination' =>
get_theme_root(),
'clear_destination' => false, // Do not overwrite files.
'clear_working' => true,
) );
if ( is_wp_error( $parent_result ) ) { add_filter( 'install_theme_complete_actions', array
( $this, 'hide_activate_preview_actions'
) );
} // Start cleaning up after the parent's installation.
remove_filter( 'install_theme_complete_actions', '__return_false', 999
);