[wp-trac] Re: [WordPress Trac] #5384: wp_flag api

WordPress Trac wp-trac at lists.automattic.com
Sat Nov 24 01:04:58 GMT 2007


#5384: wp_flag api
-------------------------+--------------------------------------------------
 Reporter:  tellyworth   |        Owner:  anonymous
     Type:  enhancement  |       Status:  new      
 Priority:  normal       |    Milestone:  2.5      
Component:  General      |      Version:           
 Severity:  normal       |   Resolution:           
 Keywords:               |  
-------------------------+--------------------------------------------------
Comment (by santosj):

 I'm not sure what the fascination is with using {{{@$var['key']}}}, may I
 suggest calling isset and returning it else returning null? If you don't
 want to create a branch.

 {{{return (isset($_flags[$name]) ? $_flags[$name] : null;}}}

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


More information about the wp-trac mailing list