Skip to:
Content

BuddyPress.org

Changeset 12336


Ignore:
Timestamp:
02/19/2019 03:59:37 PM (6 years ago)
Author:
boonebgorges
Message:

Members: Bail from bp_signup_requires_privacy_policy_acceptance() on older WP.

This helps avoid fatal errors in certain cases.

Props Venutius.
Fixes #8049.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-template.php

    r12178 r12336  
    24182418 */
    24192419function bp_signup_requires_privacy_policy_acceptance() {
     2420    // Bail if we're running a version of WP that doesn't have the Privacy Policy feature.
     2421    if ( version_compare( $GLOBALS['wp_version'], '4.9.6', '<' ) ) {
     2422        return false;
     2423    }
     2424
    24202425    // Default to true when a published Privacy Policy page exists.
    24212426    $privacy_policy_url = get_privacy_policy_url();
Note: See TracChangeset for help on using the changeset viewer.