WordPress.org

Make WordPress Core

Ticket #37380: 37380.patch

File 37380.patch, 633 bytes (added by Clorith, 4 years ago)
  • src/wp-admin/options-permalink.php

     
    6666        $blog_prefix = '/blog';
    6767}
    6868
     69$usingpi = $wp_rewrite->using_index_permalinks();
     70
    6971if ( isset($_POST['permalink_structure']) || isset($_POST['category_base']) ) {
    7072        check_admin_referer('update-permalink');
    7173
     
    145147                $update_required = ( $new_rules !== $existing_rules );
    146148        }
    147149}
    148 
    149 $usingpi = $wp_rewrite->using_index_permalinks();
    150150
    151151flush_rewrite_rules();
    152152