WordPress.org

Make WordPress Core

Ticket #14547: flush_rewrite_rules_on_submit.2.diff

File flush_rewrite_rules_on_submit.2.diff, 450 bytes (added by ikailo, 5 years ago)
  • options-permalink.php

     
    120120else 
    121121        $usingpi = false; 
    122122 
    123 $wp_rewrite->flush_rules(); 
    124  
    125  
    126123if (isset($_POST['submit'])) : ?> 
    127124<div id="message" class="updated"><p><?php 
     125 
     126flush_rewrite_rules(); 
     127 
    128128if ( ! is_multisite() ) { 
    129129        if ( $iis7_permalinks ) { 
    130130                if ( $permalink_structure && ! $usingpi && ! $writable )