[buddypress-trac] [BuddyPress Trac] #7305: get_user_locale() always loads current user before init
buddypress-trac
noreply at wordpress.org
Thu Nov 3 08:47:32 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 |
---------------------------------------+---------------------
Comment (by djpaul):
In [changeset:"11223"]:
{{{
#!CommitTicketReference repository="" revision="11223"
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 for the 2.7 branch, props johnjamesjacoby
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7305#comment:12>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list