[buddypress-trac] [BuddyPress Trac] #8827: bp_get_send_message_button_args

buddypress-trac noreply at wordpress.org
Wed Feb 8 13:13:46 UTC 2023


#8827: bp_get_send_message_button_args
--------------------------+-----------------------------
 Reporter:  andrewza      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Members       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Filtering on the 'bp_get_send_message_button_args' (and other hooks that
 adds buttons to the profile page) can cause warnings when trying to remove
 these buttons programmatically with PHP

 Example - `add_filter( 'bp_get_send_public_message_button',
 '__return_false' );`, or even returning an empty string or empty array
 throws warnings.

 Trying to access array offset on value of type bool in /wp-
 content/plugins/buddypress/bp-templates/bp-nouveau/includes/members
 /template-tags.php on line 371

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


More information about the buddypress-trac mailing list