WordPress.org

Make WordPress Core

Ticket #14547: flush_rewrite_rules_on_submit.3.diff

File flush_rewrite_rules_on_submit.3.diff, 823 bytes (added by ikailo, 4 years ago)

Better Code

  • options-permalink.php

    # This patch file was generated by NetBeans IDE
    # Following Index: paths are relative to: C:\Documents and Settings\John\My Documents\Programming\SVN Repository\wordpress.core\wp-admin
    # This patch can be applied using context Tools: Patch action on respective folder.
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    120120else 
    121121        $usingpi = false; 
    122122 
    123 $wp_rewrite->flush_rules(); 
    124123 
    125  
    126 if (isset($_POST['submit'])) : ?> 
     124if (isset($_POST['submit'])) : 
     125    flush_rewrite_rules(); 
     126?> 
    127127<div id="message" class="updated"><p><?php 
    128128if ( ! is_multisite() ) { 
    129129        if ( $iis7_permalinks ) {