[buddypress-trac] [BuddyPress] #4550: BP_VERSION / BP_DB_VERSION constants are empty

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Sep 20 19:00:03 UTC 2012

#4550: BP_VERSION / BP_DB_VERSION constants are empty
 Reporter:  r-a-y         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:  1.7
 Severity:  major         |   Keywords:  has-patch
 Because the `BuddyPress::constants()` method is called before
 `BuddyPress::setup_globals()` (where the version variables are defined),
 it's impossible to set the `BP_VERSION` and `BP_DB_VERSION` constants.

 In the attached patch, I have moved `$version` and `$db_version` out of
 `setup_globals()` and into main class properties so the constants will
 still work and will not break any existing plugins relying on them.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4550>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list