[buddypress-trac] [BuddyPress] #2355: bp_core_new_nav_item doesn't allow for an array as a callback.

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed May 18 02:32:54 UTC 2011


#2355: bp_core_new_nav_item doesn't allow for an array as a callback.
--------------------------+----------------------------------
  Reporter:  brandondove  |      Owner:
      Type:  enhancement  |     Status:  closed
  Priority:  normal       |  Milestone:  1.3
 Component:  Core         |    Version:
Resolution:  worksforme   |   Keywords:  bp_core_new_nav_item
--------------------------+----------------------------------

Comment (by scribu):

 {{{'screen_function' => $this->show_user_ideas()}}} just executes the
 callback immediately; it doesn't pass it.

 However, {{{array( 'show_user_ideas', &$this )}}} is wrong too.

 The correct syntax is {{{array( &$this, 'show_user_ideas' )}}}.

-- 
Ticket URL: <https://trac.buddypress.org/ticket/2355#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list