Skip to:
Content

BuddyPress.org

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#8049 closed defect (bug) (fixed)

bp_signup_requires_privacy_policy_acceptance() fails to check WP version and fails on earlier versions

Reported by: venutius's profile Venutius Owned by: boonebgorges's profile boonebgorges
Milestone: 4.2.0 Priority: normal
Severity: normal Version: 4.0.0
Component: Members Keywords:
Cc:

Description

The WP Function get_privacy_policy_url() was introduced in WP Version 4.9.6 however the BP function bp_signup_requires_privacy_policy_acceptance() does not check for that version before trying to execute get_privacy_policy_url(). Therefore users running earlier versions of WP will see undefined function errors when using later versions of BP.

A possible fix for this is to add the following line to plugins/buddypress/bp-members/bp-members-template.php line 2421, just after the function bp_signup_requires_privacy_policy_acceptance() is declared:

if ( version_compare( $GLOBALS['wp_version'], '4.9.6', '<' ) ) return false;

Change History (3)

#1 @boonebgorges
6 years ago

  • Milestone changed from Awaiting Review to 4.2.0
  • Version set to 4.0.0

Thanks for noting this, @Venutius.

#2 @boonebgorges
6 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 12336:

Members: Bail from bp_signup_requires_privacy_policy_acceptance() on older WP.

This helps avoid fatal errors in certain cases.

Props Venutius.
Fixes #8049.

#3 @boonebgorges
6 years ago

In 12337:

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.

Note: See TracTickets for help on using tickets.