Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
No redirect after core upgrade
<?php # -*- coding: utf-8 -*-
/* Plugin Name: T5 No redirect after core upgrade */
add_action( '_core_updated_successfully', 't5_no_redirect_after_update', 0 );
function t5_no_redirect_after_update()
{
show_message( __('WordPress updated successfully') );
// Include admin-footer.php and exit
include(ABSPATH . 'wp-admin/admin-footer.php');
exit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.