[Bb-trac] [bbPress] #1077: bb_get_postmeta doesn't work where multiple posts involved

bbPress bb-trac at lists.bbpress.org
Thu Apr 30 05:44:05 GMT 2009


#1077: bb_get_postmeta doesn't work where multiple posts involved
----------------------------+-----------------------------------------------
 Reporter:  filosofo        |       Owner:                  
     Type:  defect          |      Status:  new             
 Priority:  normal          |   Milestone:  1.0             
Component:  Administration  |     Version:  1.0-beta (trunk)
 Severity:  major           |    Keywords:  bb_get_postmeta 
----------------------------+-----------------------------------------------
 {{{bb_cache_posts()}}} caches posts ''without'' post meta data. Then when
 you call {{{bb_get_postmeta()}}}, it uses {{{bb_get_post()}}} to append
 the meta data.  However, {{{bb_get_post()}}} appends the meta data only if
 the post isn't already cached.  Which it is, thanks to
 {{{bb_cache_posts()}}}.  So you can't retrieve meta data using
 {{{bb_get_postmeta()}}}.

 Patch fixes by appending the meta data in {{{bb_cache_posts()}}}.

-- 
Ticket URL: <http://trac.bbpress.org/ticket/1077>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list