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

buddypress-trac noreply at wordpress.org
Tue Oct 25 17:07:19 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                      |  Resolution:
 Keywords:  needs-patch needs-testing  |

Comment (by johnjamesjacoby):

 Replying to [comment:2 DJPaul]:
 > Can we do something smart like not sending a notice for the
 get_user_locale() instance -- perhaps via backtrace detection -- and keep
 the rest in place?

 I don't think so, because this is just the way WordPress is going to work
 now. It may actually be for the better, since BuddyPress was originally
 was of the big offenders of this back-in-the-day when we would load the
 current user early and send them to purgatory of they were a spammer.

 Replying to [comment:3 ocean90]:
 > Would https://core.trac.wordpress.org/ticket/23016#comment:16 help
 BuddyPress too?

 I think so, yes, but it needs testing to confirm. BuddyPress doesn't use
 primitive roles yet, but it has used mapped capabilities for a long while,
 and we've wanted to have primitive roles for a long while.

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

More information about the buddypress-trac mailing list