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
This commit is contained in:
parent
848304e3c0
commit
cd2b1cffbf
|
@ -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'] ) ) : ?>
|
||||
<div id="message" class="updated"><p><?php
|
||||
if ( ! is_multisite() ) {
|
||||
if ( $iis7_permalinks ) {
|
||||
|
|
Loading…
Reference in New Issue