[buddypress-trac] [BuddyPress Trac] #7203: BP_Core_Nav->delete_nav() generates "Array to string conversion" PHP Notice

buddypress-trac noreply at wordpress.org
Wed Jul 27 12:35:34 UTC 2016


#7203: BP_Core_Nav->delete_nav() generates "Array to string conversion" PHP Notice
--------------------------+-----------------------------
 Reporter:  needle        |      Owner:  imath
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Navigation    |    Version:  2.6.0
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 When deleting a parent nav item whose "screen function" (callback) is a
 method rather than a function, `array_unique` generates a PHP Notice:
 "Array to string conversion in /wp-content/plugins/buddypress/bp-
 core/classes/class-bp-core-nav.php on line 278". I can't quite figure out
 the importance of returning a unique array, since there seems to be no
 down side to unhooking any returned callbacks multiple times. IOW,
 unhooking an already-unhooked callback will have no effect.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7203>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list