[wp-trac] [WordPress Trac] #13683: Add clearstatcache for fix a bug on specific configuration

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 1 18:35:43 UTC 2010


#13683: Add clearstatcache for fix a bug on specific configuration
---------------------------+------------------------------------------------
 Reporter:  momo360modena  |       Owner:                         
     Type:  defect (bug)   |      Status:  new                    
 Priority:  normal         |   Milestone:  3.0                    
Component:  Import         |     Version:  3.0                    
 Severity:  normal         |    Keywords:  has-patch needs-testing
---------------------------+------------------------------------------------
 This bug is present on the configuration of this ticket ticket:13659

 With the WordPress importer, the method to import an attachment is :
  * Create a empty file
  * Get datas from the URL
  * Write the datas on the empty file.
  * Check size by compare Header and file size.

 The bug is here.
 When the filesize() is call, the function return 0 because the value is on
 cache from the empty file.

 Call the clearstatcache() function solve the problem.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13683>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list