Return status from save_mod_rewrite_rules(). Props Viper007Bond. fixes #3409

git-svn-id: https://develop.svn.wordpress.org/trunk@4577 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-12-01 12:07:01 +00:00
parent 9329aef5cd
commit 70d72e9942
1 changed files with 4 additions and 4 deletions

View File

@ -1255,16 +1255,16 @@ function save_mod_rewrite_rules() {
$home_path = get_home_path();
if (!$wp_rewrite->using_mod_rewrite_permalinks() )
return;
return false;
if (!((!file_exists( $home_path.'.htaccess' ) && is_writable( $home_path ) ) || is_writable( $home_path.'.htaccess' ) ) )
return;
return false;
if (! got_mod_rewrite() )
return;
return false;
$rules = explode( "\n", $wp_rewrite->mod_rewrite_rules() );
insert_with_markers( $home_path.'.htaccess', 'WordPress', $rules );
return insert_with_markers( $home_path.'.htaccess', 'WordPress', $rules );
}
function get_broken_themes() {