Return status from save_mod_rewrite_rules(). Props Viper007Bond. fixes #3409
git-svn-id: http://svn.automattic.com/wordpress/trunk@4577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ec850c8478
commit
3026668de6
|
@ -1255,16 +1255,16 @@ function save_mod_rewrite_rules() {
|
||||||
$home_path = get_home_path();
|
$home_path = get_home_path();
|
||||||
|
|
||||||
if (!$wp_rewrite->using_mod_rewrite_permalinks() )
|
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' ) ) )
|
if (!((!file_exists( $home_path.'.htaccess' ) && is_writable( $home_path ) ) || is_writable( $home_path.'.htaccess' ) ) )
|
||||||
return;
|
return false;
|
||||||
|
|
||||||
if (! got_mod_rewrite() )
|
if (! got_mod_rewrite() )
|
||||||
return;
|
return false;
|
||||||
|
|
||||||
$rules = explode( "\n", $wp_rewrite->mod_rewrite_rules() );
|
$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() {
|
function get_broken_themes() {
|
||||||
|
|
Loading…
Reference in New Issue