#8049 closed defect (bug) (fixed)
bp_signup_requires_privacy_policy_acceptance() fails to check WP version and fails on earlier versions
Reported by: |
|
Owned by: |
|
---|---|---|---|
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;
Thanks for noting this, @Venutius.