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

buddypress-trac noreply at wordpress.org
Tue Oct 25 16:45:34 UTC 2016


#7305: get_user_locale() always loads current user before init
-----------------------------+---------------------------------------
 Reporter:  johnjamesjacoby  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  high             |  Milestone:  Awaiting Review
Component:  Core             |    Version:  2.7
 Severity:  major            |   Keywords:  needs-patch needs-testing
-----------------------------+---------------------------------------
 In WordPress 4.7, the `get_user_locale()` function will always invoke the
 current user object before the `init` hook has fired.

 This results in the very common `The current user is being initialized
 without using $wp->init()` notice on every page load.

 Looks like it's time to retire this notice for good, and patch the
 unintended consequences of this reorder.

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


More information about the buddypress-trac mailing list