[wp-trac] [WordPress Trac] #62393: doing it wrong for user used too early
WordPress Trac
noreply at wordpress.org
Tue Nov 12 13:23:33 UTC 2024
#62393: doing it wrong for user used too early
-------------------------+-----------------------------
Reporter: kkmuffme | Owner: swisssspidy
Type: enhancement | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Users | Version:
Severity: minor | Keywords:
Focuses: |
-------------------------+-----------------------------
Inspired by https://core.trac.wordpress.org/ticket/44937 specifically
https://core.trac.wordpress.org/ticket/44937#comment:33
>That means it causes the current user to be set up too early.
I guess we should add the same doing it wrong that was added for
translations when someone tries to load the user early in other cases too?
Essentially where we now have in `function _wp_get_current_user() {`
{{{#!php
<?php
$user_id = apply_filters( 'determine_current_user', false );
}}}
What do you think?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62393>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list