Cache rewrite rules. Add WP_Rewrite::flush_rules(). fixes #2155

git-svn-id: https://develop.svn.wordpress.org/trunk@3373 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-12-28 07:05:05 +00:00
parent 367e600ea8
commit 5be951ca28
6 changed files with 26 additions and 17 deletions

View File

@@ -76,8 +76,6 @@ if ( isset($_POST) ) {
$permalink_structure = get_settings('permalink_structure');
$category_base = get_settings('category_base');
generate_page_rewrite_rules();
if ( (!file_exists($home_path.'.htaccess') && is_writable($home_path)) || is_writable($home_path.'.htaccess') )
$writable = true;
else
@@ -88,7 +86,7 @@ if ($wp_rewrite->using_index_permalinks())
else
$usingpi = false;
save_mod_rewrite_rules();
$wp_rewrite->flush_rules();
?>
<?php if (isset($_POST['submit'])) : ?>