do_action( 'upgrader_process_complete',
$this,
array
( 'action' => 'update',
'type' => 'theme',
'bulk' => true,
'themes' =>
$themes,
) );
$this->skin->
bulk_footer();
$this->skin->
footer();
// Cleanup our hooks, in case something else does an upgrade on this connection.
remove_filter( 'upgrader_pre_install', array
( $this, 'current_before'
) );
remove_filter( 'upgrader_post_install', array
( $this, 'current_after'
) );
remove_filter( 'upgrader_clear_destination', array
( $this, 'delete_old_theme'
) );
/*
* Ensure any future auto-update failures trigger a failure email by removing
* the last failure notification from the list when themes update successfully.
*/