Skip to:
Content

BuddyPress.org

Changeset 12337


Ignore:
Timestamp:
02/19/2019 04:00:27 PM (12 months ago)
Author:
boonebgorges
Message:

Members: Bail from bp_signup_requires_privacy_policy_acceptance() on older WP.

This helps avoid fatal errors in certain cases.

Merges [12336] to the 4.0 branch.

Props Venutius.
Fixes #8049.

Location:
branches/4.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.0

  • branches/4.0/src/bp-members/bp-members-template.php

    r12178 r12337  
    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.