[wp-trac] Re: [WordPress Trac] #3907: WP reverts to default theme
on file access collision
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 5 07:28:54 GMT 2007
#3907: WP reverts to default theme on file access collision
----------------------+-----------------------------------------------------
Reporter: _ck_ | Owner: anonymous
Type: defect | Status: new
Priority: low | Milestone: 2.2
Component: Template | Version:
Severity: normal | Resolution:
Keywords: |
----------------------+-----------------------------------------------------
Comment (by _ck_):
Untested suggestion, some code borrowed from php.net
{{{
function wp_file_exists($file) {
$start = gettimeofday();
while (!file_exists(trim($file, " '\""))) {
$stop = gettimeofday();
if ( 1000000 * ($stop['sec'] - $start['sec']) + stop['usec'] -
$start['usec'] > 500000) {
return file_exists(trim($file, " '\"")); }
}
return true;
}
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/3907#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list