[buddypress-trac] [BuddyPress Trac] #7254: PHPUnit tests does not call plugin activation hook.

buddypress-trac noreply at wordpress.org
Tue Sep 13 17:20:30 UTC 2016


#7254: PHPUnit tests does not call plugin activation hook.
------------------------------+------------------
 Reporter:  DJPaul            |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  2.7
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |
------------------------------+------------------

Comment (by djpaul):

 In [changeset:"11094"]:
 {{{
 #!CommitTicketReference repository="" revision="11094"
 Core: stop `bp_get_default_options()` adding missing options to the
 database.

 `bp_get_default_options()` is used to get default option names and values
 throughout BuddyPress. If an option is not set in the database when the
 function is ran, it will add it.
 The function is called in lots of places, and it even gets called before
 the version update handler routine does, from
 `bp_core_set_avatar_constants()`.
 This is not obvious, and causes unpredictable behaviour about when a new
 option should exist (or not).

 This change removes the missing option insertion from
 `bp_get_default_options()`.
 New installs will have all options added by `bp_activation()`. Version
 updates will take responsibility to add new options within the existing
 upgrade routines.

 See #7254 and #7227
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7254#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list