[Bb-trac] [bbPress] #631: Too many attributes in function call

bbPress bb-trac at lists.bbpress.org
Thu Apr 5 18:25:17 GMT 2007


#631: Too many attributes in function call
----------------------+-----------------------------------------------------
 Reporter:  GTim      |       Owner:     
     Type:  defect    |      Status:  new
 Priority:  lowest    |   Milestone:     
Component:  Back-end  |     Version:     
 Severity:  minor     |    Keywords:     
----------------------+-----------------------------------------------------
 On line 1336 of /bb-includes/template-functions.php, the function
 topic_tags() is defined. There, another function is called:

 bb_current_user_can( 'edit_tag_by_on', bb_get_current_user_info( 'id' ),
 $topic->topic_id )

 However, on line 450 of /bb-includes/capabilities.php, that function is
 defined as having only one argument:

 // Capability checking wrapper around the global $bb_current_user object.
 function bb_current_user_can($capability) {

 Is this a remnant from earlier versions, or am I misunderstanding the
 code? No error message seems to be generated.

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


More information about the Bb-trac mailing list