[buddypress-trac] [BuddyPress Trac] #8049: bp_signup_requires_privacy_policy_acceptance() fails to check WP version and fails on earlier versions

buddypress-trac noreply at wordpress.org
Wed Feb 6 10:31:20 UTC 2019


#8049: bp_signup_requires_privacy_policy_acceptance() fails to check WP version
and fails on earlier versions
--------------------------+-----------------------------
 Reporter:  Venutius      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Members       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 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;`

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8049>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list