[Bb-trac] [bbPress] #1029: Favorites issue with WordPress Function integration

bbPress bb-trac at lists.bbpress.org
Tue Jan 13 09:07:49 GMT 2009


#1029: Favorites issue with WordPress Function integration
-----------------------------+----------------------------------------------
 Reporter:  johnjamesjacoby  |       Owner:                    
     Type:  defect           |      Status:  new               
 Priority:  high             |   Milestone:  1.0-beta & XML-RPC
Component:  integration      |     Version:  1.0-beta (trunk)  
 Severity:  normal           |    Keywords:                    
-----------------------------+----------------------------------------------
 Looks like a few changes might be needed unless I'm missing something
 along the way...

 This makes the favorites load properly for me.

 includes/functions.bb-users.php
 line 221
 FROM
 if ( !empty($user->favorites) ) {
 TO
 if ( !empty($user->bb_favorites) ) {

 includes/class.bb-query
 line 442
 FROM
 $where .= $this->parse_value( 't.topic_id', $f_user->favorites );
 TO
 $where .= $this->parse_value( 't.topic_id', $f_user->bb_favorites );

 line 559
 FROM
 $where .= $this->parse_value( 'p.topic_id', $f_user->favorites );
 TO
 $where .= $this->parse_value( 'p.topic_id', $f_user->bb_favorites );

 Basically, there are a few other places where $user->favorites needs to be
 changed to $user->bb_favorites. I think functions.bb-template.php and bb-
 do-counts.php also had a few references that I changed.

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


More information about the Bb-trac mailing list