[buddypress-trac] [BuddyPress Trac] #7227: Fatal error - Call to undefined function wp_generate_password() in bp-core\bp-core-options.php on line 77

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

#7227: Fatal error - Call to undefined function wp_generate_password() in bp-core
\bp-core-options.php on line 77
 Reporter:  r-a-y         |       Owner:  djpaul
     Type:  defect (bug)  |      Status:  closed
 Priority:  high          |   Milestone:  2.7
Component:  Core          |     Version:
 Severity:  major         |  Resolution:  fixed
 Keywords:  has-patch     |

Comment (by djpaul):

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

 `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
 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
 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/7227#comment:9>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list