Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/11/2020 04:36:37 PM (6 years ago)
Author:
imath
Message:

BP Nouveau: remove unnecessary code & deprecate a function

The introduction of the BP Invitations feature in BuddyPress 6.0.0 is now making sure the optional Group's inviter message is included into the BP Email sent to the user.

Let's simply remove unnecessary code & deprecate bp_nouveau_groups_invites_custom_message().

Props DJPaul

Fixes #7875 (6.0 branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/6.0/src/bp-templates/bp-nouveau/includes/groups/functions.php

    r12647 r12716  
    44 *
    55 * @since 3.0.0
    6  * @version 5.0.0
     6 * @version 6.3.0
    77 */
    88
     
    364364
    365365/**
    366  * @since 3.0.0
     366 * Includes a message into the sent invitation email.
     367 *
     368 * @since 3.0.0
     369 * @deprecated 6.3.0
     370 *
     371 * @param string $message The message to send with the invite
    367372 */
    368373function bp_nouveau_groups_invites_custom_message( $message = '' ) {
     374    _deprecated_function( __FUNCTION__, '6.3.0' );
     375
    369376    if ( empty( $message ) ) {
    370377        return $message;
Note: See TracChangeset for help on using the changeset viewer.