﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
3907	WP reverts to default theme on file access collision	_ck_	anonymous	"There is still no fix addressed to the problem on heavily accessed systems where the theme can revert back to default. 

This apparently happens if the ""file_exists"" test in [http://trac.wordpress.org/browser/trunk/wp-includes/theme.php theme.php] fails under any of a few different functions? PHP manual shows that ""file_exists"" can fail if a theme file is being replaced at the time or certain conditions occur under php safe mode. 

One way to reproduce this bug consistently is to upload ""style.css"" repeatedly while a site is active.

I'd like to suggest that ""file_exists"" be replaced with a custom function that does at least a few retries over an adjustable time (a second or so) before completely giving up and reverting.

"	defect (bug)	closed	low	2.5	Template	2.2	major	fixed	has-patch	
