From cd2b1cffbff1e42364742360639b65f24b636d2d Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 22 Apr 2013 20:57:34 +0000 Subject: [PATCH] Redirect after save on options-permalink.php to ensure permalinks are fully flushed. fixes #9296. see #14345 for more. git-svn-id: http://core.svn.wordpress.org/trunk@24060 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options-permalink.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index fe77a01315..d086fdc6b1 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -71,8 +71,6 @@ jQuery(document).ready(function() { } add_filter('admin_head', 'options_permalink_add_js'); -include('./admin-header.php'); - $home_path = get_home_path(); $iis7_permalinks = iis7_supports_permalinks(); @@ -115,7 +113,8 @@ if ( isset($_POST['permalink_structure']) || isset($_POST['category_base']) ) { $wp_rewrite->set_tag_base( $tag_base ); } - create_initial_taxonomies(); + wp_redirect( admin_url( 'options-permalink.php?settings-updated=true' ) ); + exit; } $permalink_structure = get_option('permalink_structure'); @@ -141,7 +140,9 @@ else flush_rewrite_rules(); -if (isset($_POST['submit'])) : ?> +require( ABSPATH . 'wp-admin/admin-header.php' ); + +if ( ! empty( $_GET['settings-updated'] ) ) : ?>