Created
July 6, 2012 11:58
-
-
Save thefuxia/3059742 to your computer and use it in GitHub Desktop.
No redirect after core upgrade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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