WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/16/2009 02:44:28 AM (11 years ago)
Author:
ryan
Message:

Don't write to htaccess every time page is saved. Add hard/soft flush flag to flush_rules(). Make sure fopen is successful and silence errors. Props Viper007Bond. fixes #10181 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r11467 r11578  
    11931193            clean_page_cache($child->ID);
    11941194
    1195         $wp_rewrite->flush_rules();
     1195        $wp_rewrite->flush_rules(false);
    11961196    } else {
    11971197        clean_post_cache($postid);
     
    33553355        if ( !defined('WP_IMPORTING') ) {
    33563356            global $wp_rewrite;
    3357             $wp_rewrite->flush_rules();
     3357            $wp_rewrite->flush_rules(false);
    33583358        }
    33593359    } else {
Note: See TracChangeset for help on using the changeset viewer.