[wp-trac] [WordPress Trac] #13965: wp_get_nocache_headers should always return an array

WordPress Trac wp-trac at lists.automattic.com
Sun Jun 20 20:33:33 UTC 2010


#13965: wp_get_nocache_headers should always return an array
--------------------------+-------------------------------------------------
 Reporter:  filosofo      |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.1      
Component:  General       |     Version:  3.0      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by filosofo):

 The net number of casts to array is unchanged, just moved to make it more
 reliable.

 In general, I think it's better to try to handle plugins' runtime errors
 (like this) gracefully, as opposed to say more "compile"-time errors
 (including the wrong file or using the wrong protocol, etc.).

 That's because the latter kind of error is more likely to appear
 consistently during development and therefore get corrected.  But the
 former might occur only in particular conditions.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13965#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list