[wp-trac] [WordPress Trac] #14766: New Hooks for add / update / delete / get metadata in 3.1

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 25 17:30:46 UTC 2010


#14766: New Hooks for add / update / delete / get metadata in 3.1
----------------------------+-----------------------------------------------
 Reporter:  sc0ttkclark     |       Owner:  markjaquith
     Type:  task (blessed)  |      Status:  assigned   
 Priority:  normal          |   Milestone:  3.1        
Component:  Plugins         |     Version:  3.0.1      
 Severity:  normal          |    Keywords:  has-patch  
----------------------------+-----------------------------------------------

Comment(by scribu):

 {{{
 $check = apply_filters( "add_{$meta_type}_metadata" , null, $object_id,
 $meta_key, $meta_value, $unique );
 if ( null !== $check )
   return true;
 }}}

 I'm saying that the third line should probably be {{{return $check}}}.

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


More information about the wp-trac mailing list