[buddypress-trac] [BuddyPress] #4794: Calling bp_core_new_nav_item() without screen_function parameter generates PHP warning

buddypress-trac noreply at wordpress.org
Fri Feb 8 08:29:13 UTC 2013


#4794: Calling bp_core_new_nav_item() without screen_function parameter generates
PHP warning
------------------------------+-----------------------------
 Reporter:  doublesharp       |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Future Release
Component:  Warnings/Notices  |     Version:  1.2
 Severity:  normal            |  Resolution:
 Keywords:  needs-patch       |
------------------------------+-----------------------------

Comment (by r-a-y):

 > Thanks for the patch r-a-y, but it's missing most of the is_object logic
 that's in the current version.

 Unless I'm mistaken, `is_callable()` already checks for objects or class
 methods.

 See the example on the PHP doc page:
 http://www.php.net/manual/en/function.is-callable.php

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4794#comment:6>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list