[buddypress-trac] [BuddyPress Trac] #7305: get_user_locale() always loads current user before init

buddypress-trac noreply at wordpress.org
Thu Nov 3 08:45:34 UTC 2016


#7305: get_user_locale() always loads current user before init
---------------------------------------+---------------------
 Reporter:  johnjamesjacoby            |       Owner:  djpaul
     Type:  defect (bug)               |      Status:  closed
 Priority:  high                       |   Milestone:  2.7.1
Component:  Core                       |     Version:  2.7
 Severity:  major                      |  Resolution:  fixed
 Keywords:  needs-patch needs-testing  |
---------------------------------------+---------------------
Changes (by djpaul):

 * owner:   => djpaul
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"11222"]:
 {{{
 #!CommitTicketReference repository="" revision="11222"
 Core: remove `wp->init()` PHP notice from `bp_setup_current_user()` due to
 load order changes in WordPress 4.7.

 In WordPress 4.7, the `get_user_locale()` function will always invoke the
 current user object before the `init` hook has fired.
 This should cause no other regression for BuddyPress as we don't use
 primitive roles yet.

 Fixes #7305, props johnjamesjacoby
 }}}

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


More information about the buddypress-trac mailing list