Make WordPress Core

Opened 19 months ago

#43358 new defect (bug)

The theme/plugin editor sandbox does not play well with PHP sessions

Reported by: bruandet Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.4
Component: Administration Keywords:
Focuses: Cc:


The theme/plugin editor sandbox does not work with some plugins (or themes) using PHP sessions. Because of the session exclusive lock, cURL will time out when attempting to connect back to the site and the request will fail.
Checking if a session was started and then calling session_write_close() before the first wp_remote_get() call in wp-admin/includes/file.php seems to solve the issue.

Change History (0)

Note: See TracTickets for help on using tickets.