Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#15616 closed defect (bug) (fixed)

Avoid running win_is_writable() on non-IIS servers

Reported by: nbachiyski Owned by:
Milestone: 3.1 Priority: low
Severity: normal Version: 3.0.1
Component: Performance Keywords:
Focuses: Cc:


win_is_writable() is both expensive (creates temporary files) and must use the @ operator due to a PHP bug in Windows.

It's use on non-IIS servers can be avoided if we first check if IIS7 rewrite rules are supported on this server.

Change History (2)

#1 @nbachiyski
7 years ago

First pass: [16634]

#2 @nbachiyski
7 years ago

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.