#8049 closed defect (bug) (fixed)
bp_signup_requires_privacy_policy_acceptance() fails to check WP version and fails on earlier versions
| Reported by: | Venutius | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.2.0 |
| Component: | Members | Version: | 4.0.0 |
| Severity: | normal | 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;
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks for noting this, @Venutius.