[wp-trac] Re: [WordPress Trac] #7014: get_post_custom() doesn't always return an array

WordPress Trac wp-trac at lists.automattic.com
Tue May 19 08:32:39 GMT 2009


#7014: get_post_custom() doesn't always return an array
--------------------------+-------------------------------------------------
 Reporter:  donncha       |       Owner:  anonymous
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  2.8      
Component:  General       |     Version:  2.5.1    
 Severity:  normal        |    Keywords:           
--------------------------+-------------------------------------------------
Changes (by Denis-de-Bernardy):

  * milestone:  2.9 => 2.8


Comment:

 seems invalid:


 {{{
         foreach ( (array) $ids as $id ) {
                 if ( ! isset($cache[$id]) )
                         $cache[$id] = array();
         }

         foreach ( (array) array_keys($cache) as $post)
                 wp_cache_set($post, $cache[$post], 'post_meta');

 }}}

 or am I missing something?

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


More information about the wp-trac mailing list