WordPress.org

Make WordPress Core

Ticket #4018: save_mod_rewrite_rules-fix.diff

File save_mod_rewrite_rules-fix.diff, 546 bytes (added by m0n5t3r, 11 years ago)

fix for save_mod_rewrite_rules

  • wp-admin/admin-functions.php

    === modified file 'wp-admin/admin-functions.php'
     
    14941494        global $is_apache, $wp_rewrite;
    14951495        $home_path = get_home_path();
    14961496
    1497         if (!$wp_rewrite->using_mod_rewrite_permalinks() )
     1497        if (!$wp_rewrite->using_mod_rewrite_permalinks() && !file_exists($home_path.'.htaccess'))
    14981498                return false;
    14991499
    15001500        if (!((!file_exists( $home_path.'.htaccess' ) && is_writable( $home_path ) ) || is_writable( $home_path.'.htaccess' ) ) )