WordPress.org

Make WordPress Core

Changeset 24060


Ignore:
Timestamp:
04/22/2013 08:57:34 PM (5 years ago)
Author:
nacin
Message:

Redirect after save on options-permalink.php to ensure permalinks are fully flushed. fixes #9296. see #14345 for more.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-permalink.php

    r24002 r24060  
    7272add_filter('admin_head', 'options_permalink_add_js');
    7373
    74 include('./admin-header.php');
    75 
    7674$home_path = get_home_path();
    7775$iis7_permalinks = iis7_supports_permalinks();
     
    116114    }
    117115
    118     create_initial_taxonomies();
     116    wp_redirect( admin_url( 'options-permalink.php?settings-updated=true' ) );
     117    exit;
    119118}
    120119
     
    142141flush_rewrite_rules();
    143142
    144 if (isset($_POST['submit'])) : ?>
     143require( ABSPATH . 'wp-admin/admin-header.php' );
     144
     145if ( ! empty( $_GET['settings-updated'] ) ) : ?>
    145146<div id="message" class="updated"><p><?php
    146147if ( ! is_multisite() ) {
Note: See TracChangeset for help on using the changeset viewer.