[wp-trac] [WordPress Trac] #14766: New Hooks for add / update / delete / get metadata in 3.1
    WordPress Trac 
    wp-trac at lists.automattic.com
       
    Wed Oct 27 15:09:04 UTC 2010
    
    
  
#14766: New Hooks for add / update / delete / get metadata in 3.1
----------------------------+-----------------------------------------------
 Reporter:  sc0ttkclark     |        Owner:  markjaquith
     Type:  task (blessed)  |       Status:  reopened   
 Priority:  normal          |    Milestone:  3.1        
Component:  Plugins         |      Version:  3.0.1      
 Severity:  normal          |   Resolution:             
 Keywords:  has-patch       |  
----------------------------+-----------------------------------------------
Comment(by sc0ttkclark):
 Before I go completing the patch, anyone have anything against this:
 {{{
         $check = apply_filters( "get_{$meta_type}_metadata", null,
 $object_id, $meta_key, $single );
         if ( null !== $check ) {
                 if ( $single && is_array( $check ) )
                         return $check[0];
                 else
                         return $check;
         }
 }}}
-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14766#comment:21>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
    
    
More information about the wp-trac
mailing list