[buddypress-trac] [BuddyPress Trac] #7906: Helper function for checking WP version
buddypress-trac
noreply at wordpress.org
Fri Oct 9 19:17:26 UTC 2020
#7906: Helper function for checking WP version
------------------------------------+---------------------
Reporter: boonebgorges | Owner: imath
Type: enhancement | Status: closed
Priority: normal | Milestone: 7.0.0
Component: Core | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch dev-feedback |
------------------------------------+---------------------
Changes (by imath):
* owner: (none) => imath
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"12745" 12745]:
{{{
#!CommitTicketReference repository="" revision="12745"
Core: introduce the `bp_is_running_wp()` function
This helper function checks WordPress version and is used by BuddyPress to
ensure backward-compatibility when a WordPress feature/function is not yet
available on the WordPress site BuddyPress is running on.
We have standardized the way we were doing these checks so far by
replacing these with the use of this new `bp_is_running_wp()` function. It
will help us to identify backward-compatibility chunks when we bump our
minimum WP version.
`bp_is_running_wp()` accepts two arguments:
- the WP version, in "PHP-standardized" format.
- the comparison operator. It defaults to `>=`.
Props boonebgorges, r-a-y, espellcaste
Fixes #7906
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7906#comment:10>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list