Make WordPress Core

Changeset 16635


Ignore:
Timestamp:
11/30/2010 09:41:57 PM (14 years ago)
Author:
nbachiyski
Message:

Add another pair of parentheses, so that the right-hand win_is_writable() isn't always called. Fixes #15616

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/misc.php

    r16634 r16635  
    156156
    157157    // Using win_is_writable() instead of is_writable() because of a bug in Windows PHP
    158     if ( iis7_supports_permalinks() && ( ! file_exists($web_config_file) && win_is_writable($home_path) && $wp_rewrite->using_mod_rewrite_permalinks() ) || win_is_writable($web_config_file) ) {
     158    if ( iis7_supports_permalinks() && ( ( ! file_exists($web_config_file) && win_is_writable($home_path) && $wp_rewrite->using_mod_rewrite_permalinks() ) || win_is_writable($web_config_file) ) ) {
    159159        $rule = $wp_rewrite->iis7_url_rewrite_rules(false, '', '');
    160160        if ( ! empty($rule) ) {
Note: See TracChangeset for help on using the changeset viewer.