[wp-trac] [WordPress Trac] #31811: Update error: not able to create directory

WordPress Trac noreply at wordpress.org
Sat May 16 01:11:47 UTC 2015

#31811: Update error: not able to create directory
 Reporter:  afragen          |       Owner:  dd32
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  4.2.2
Component:  Upgrade/Install  |     Version:  4.2
 Severity:  normal           |  Resolution:  fixed
 Keywords:                   |     Focuses:

Comment (by tellyworth):

 There's an obscure regression here. The old regex would strip the
 extension and add '.tmp' in one preg_replace. The new version strips the
 extension first, then concats '.tmp' separately, regardless of whether or
 not there was an extension passed in.

 So the previous version, if given a filename with no extension, would
 produce a temp name with no extension. Now the result always has a '.tmp'
 extension, regardless of the input.

 It's arguably correct behaviour, just posting here because we found a
 plugin that was tripped up by the change.

Ticket URL: <https://core.trac.wordpress.org/ticket/31811#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list