WordPress.org

Make WordPress Core

Ticket #9296: 9296.5.diff

File 9296.5.diff, 898 bytes (added by nacin, 6 years ago)
  • wp-admin/options-permalink.php

     
    7171}
    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();
    7876
     
    115113                $wp_rewrite->set_tag_base( $tag_base );
    116114        }
    117115
    118         create_initial_taxonomies();
     116        wp_redirect( admin_url( 'options-permalink.php?updated=true' ) );
     117        exit;
    119118}
    120119
    121120$permalink_structure = get_option('permalink_structure');
     
    141140
    142141flush_rewrite_rules();
    143142
    144 if (isset($_POST['submit'])) : ?>
     143include('./admin-header.php');
     144
     145if ( ! empty( $_GET['updated'] ) ) : ?>
    145146<div id="message" class="updated"><p><?php
    146147if ( ! is_multisite() ) {
    147148        if ( $iis7_permalinks ) {