[buddypress-trac] [BuddyPress Trac] #8298: Deprecated: groups_send_membership_request

buddypress-trac noreply at wordpress.org
Thu May 14 08:08:58 UTC 2020


#8298: Deprecated: groups_send_membership_request
--------------------------+-----------------------------
 Reporter:  N33D          |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  high          |  Milestone:  Awaiting Review
Component:  Groups        |    Version:  5.2.0
 Severity:  major         |   Keywords:
--------------------------+-----------------------------
 Hi there,

 **There is a PHP file which I include in the group single page by using:**

 {{{#!php
 <?php
 function action_bp_after_group_header(  ) {
     require_once(JV_SERVER_DIR
 .'/templates/partials/buddypress/group/single/group_actions.php');
 };
 add_action( 'bp_after_group_header', 'action_bp_after_group_header', 10, 0
 );
 }}}

 **In this file I call the following function:**

 {{{#!php
 <?php if ( groups_is_user_admin( $user_id, $group_id ) !== $group_id ): ?>
    <?php bp_group_join_button(); ?>
 <?php endif; ?>
 }}}

 **Once clicked I get the following error:**

 {{{
 Deprecated: groups_send_membership_request was called with an argument
 that is deprecated since version 5.0.0! Arguments passed to
 groups_send_membership_request should be in an associative array. See the
 inline documentation at /Users/****/Sites/mvp/wp-
 content/plugins/buddypress/bp-groups/bp-groups-functions.php for more
 details. in /Users/****/Sites/mvp/wp-includes/functions.php on line 4997

 Warning: Cannot modify header information - headers already sent by
 (output started at /Users/****/Sites/mvp/wp-includes/functions.php:4997)
 in /Users/****/Sites/mvp/wp-includes/pluggable.php on line 1281

 Warning: Cannot modify header information - headers already sent by
 (output started at /Users/****/Sites/mvp/wp-includes/functions.php:4997)
 in /Users/****/Sites/mvp/wp-includes/pluggable.php on line 1284
 }}}

  I use the latest version of WordPress and BuddyPress.
 Though, the request was made and functionality is working.

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


More information about the buddypress-trac mailing list