Skip to:
Content

BuddyPress.org

Ticket #8173: 8173.diff

File 8173.diff, 1.8 KB (added by espellcaste, 5 years ago)
  • src/bp-core/bp-core-functions.php

    diff --git a/src/bp-core/bp-core-functions.php b/src/bp-core/bp-core-functions.php
    index e66c78188..e659eace1 100644
    a b function bp_core_replace_tokens_in_text( $text, $tokens ) { 
    34003400 * @return array
    34013401 */
    34023402function bp_email_get_schema() {
    3403         return array(
     3403
     3404        /**
     3405         * Filters the list of `bp_email_get_schema()` allowing anyone to add/remove emails.
     3406         *
     3407         * @since 7.0.0
     3408         *
     3409         * @param array $emails The array of emails schema.
     3410         */
     3411        return (array) apply_filters( 'bp_email_get_schema', array(
    34043412                'activity-comment' => array(
    34053413                        /* translators: do not remove {} brackets or translate its contents. */
    34063414                        'post_title'   => __( '[{{{site.name}}}] {{poster.name}} replied to one of your updates', 'buddypress' ),
    function bp_email_get_schema() { 
    35323540                        /* translators: do not remove {} brackets or translate its contents. */
    35333541                        'post_excerpt' => __( "Your membership request for the group \"{{group.name}}\" has been rejected.\n\nTo request membership again, visit: {{{group.url}}}", 'buddypress' ),
    35343542                ),
    3535         );
     3543        ) );
    35363544}
    35373545
    35383546/**
    function bp_email_get_type_schema( $field = 'description' ) { 
    35593567                'unsubscribe'   => array(
    35603568                        'meta_key'      => 'notification_activity_new_reply',
    35613569                        'message'       => __( 'You will no longer receive emails when someone replies to an update or comment you posted.', 'buddypress' ),
    3562                         ),
     3570                ),
    35633571        );
    35643572
    35653573        $activity_comment_author = array(
    function bp_email_get_type_schema( $field = 'description' ) { 
    35673575                'unsubscribe'   => array(
    35683576                        'meta_key'      => 'notification_activity_new_reply',
    35693577                        'message'       => __( 'You will no longer receive emails when someone replies to an update or comment you posted.', 'buddypress' ),
    3570                         ),
     3578                ),
    35713579        );
    35723580
    35733581        $activity_at_message = array(