[wp-trac] [WordPress Trac] #6021: Use the "@" modifier sparingly (or not at all).

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 27 20:51:29 GMT 2008

#6021: Use the "@" modifier sparingly (or not at all).
 Reporter:  orlandu63     |       Owner:  anonymous
     Type:  enhancement   |      Status:  new      
 Priority:  lowest        |   Milestone:  2.3.4    
Component:  Optimization  |     Version:           
 Severity:  trivial       |    Keywords:           
 The "@" error-control operator should be avoided. It is slow.

 In [http://trac.wordpress.org/browser/trunk/wp-includes/script-
 loader.php#L370 /wp-includes/script-loader.php] you can use
 array_pad(func_get_args(), 4, null) to achieve the same effect (and save a
 few CPU cycles). I just noticed this while browsing recent changesets, so
 I'm sure there are more potential @-replacements out there.

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

More information about the wp-trac mailing list