[wp-trac] Re: [WordPress Trac] #3907: WP reverts to default theme on file access collision

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 12 13:33:53 GMT 2007


#3907: WP reverts to default theme on file access collision
----------------------+-----------------------------------------------------
 Reporter:  _ck_      |        Owner:  anonymous
     Type:  defect    |       Status:  new      
 Priority:  low       |    Milestone:  2.3      
Component:  Template  |      Version:  2.2      
 Severity:  major     |   Resolution:           
 Keywords:            |  
----------------------+-----------------------------------------------------
Changes (by f00f):

  * severity:  normal => major

Comment:

 markjaquith: What do you mean by 'update the file'?

 The scenario (if I understood correctly) is as follows:

 While you are uploading a new stylesheet (or other theme file) via FTP a
 user visits your site. Then file_exists() could fail because the file is
 actually opened by another process than the web server.

 As a result the current theme gets permanently reset to 'default' in
 validate_current_theme().

 IMHO, one second is to long for a timeout.

 Another solution might be to check if the template folder exists and
 assume that index.php and style.css exist in it.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3907#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list