[wp-trac] Re: [WordPress Trac] #5105: Patch (formatting.php): notice-level error is being accidentally thrown

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 2 21:24:42 GMT 2008


#5105: Patch (formatting.php): notice-level error is being accidentally thrown
-----------------------+----------------------------------------------------
 Reporter:  richcon    |        Owner:  anonymous
     Type:  defect     |       Status:  new      
 Priority:  normal     |    Milestone:  2.5      
Component:  General    |      Version:  2.3      
 Severity:  normal     |   Resolution:           
 Keywords:  has-patch  |  
-----------------------+----------------------------------------------------
Comment (by darkdragon):

 Well, if you are checking to see if it is not empty, then you should use
 !empty().

 {{{
 if ( !empty($curl) && '<' != $curl{0} && $next ) { // If it isn't a tag
 }}}

 Should be used instead.

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


More information about the wp-trac mailing list