Skip to:
Content

BuddyPress.org

Changeset 12259


Ignore:
Timestamp:
10/20/2018 10:08:50 PM (5 years ago)
Author:
boonebgorges
Message:

Ensure that Privacy Policy link is added to email footer only if available in WP.

Added in [12258].

See #7866.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-functions.php

    r12258 r12259  
    32443244    );
    32453245
    3246     $privacy_policy_url = get_privacy_policy_url();
    3247     if ( $privacy_policy_url ) {
    3248         $footer_text[] = sprintf(
    3249             '<a href="%s">%s</a>',
    3250             esc_url( $privacy_policy_url ),
    3251             esc_html__( 'Privacy Policy', 'buddypress' )
    3252         );
     3246    if ( version_compare( $GLOBALS['wp_version'], '4.9.6', '>=' ) ) {
     3247        $privacy_policy_url = get_privacy_policy_url();
     3248        if ( $privacy_policy_url ) {
     3249            $footer_text[] = sprintf(
     3250                '<a href="%s">%s</a>',
     3251                esc_url( $privacy_policy_url ),
     3252                esc_html__( 'Privacy Policy', 'buddypress' )
     3253            );
     3254        }
    32533255    }
    32543256
Note: See TracChangeset for help on using the changeset viewer.