[wp-trac] [WordPress Trac] #32476: fix to tempnam() function breaks maintenance mode?
WordPress Trac
noreply at wordpress.org
Sun May 24 12:44:27 UTC 2015
#32476: fix to tempnam() function breaks maintenance mode?
-----------------------------+----------------------
Reporter: cloudware | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Upgrade/Install | Version: 4.2.2
Severity: normal | Resolution: invalid
Keywords: | Focuses:
-----------------------------+----------------------
Changes (by dd32):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
`wp_tempnam()` isn't designed to create a specific file, it's used for
creating a random temporary file, the filepath parameter you can pass is
designed to be used as a namespace/seed for that created file.
Calling `wp_tempnam("/.maintenance")` doesn't achieve the intended effect,
and WordPress itself never makes such a call. The `.maintenance` file is
always created by concatenating `ABSPATH` and `.maintenance`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32476#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list