Skip to content

Instantly share code, notes, and snippets.

@thefuxia
Created July 6, 2012 11:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thefuxia/3059742 to your computer and use it in GitHub Desktop.
Save thefuxia/3059742 to your computer and use it in GitHub Desktop.
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