[wp-trac] [WordPress Trac] #14024: Insufficient permissions error after activating plugins
WordPress Trac
wp-trac at lists.automattic.com
Sun Dec 18 23:43:14 UTC 2011
#14024: Insufficient permissions error after activating plugins
----------------------------+------------------
Reporter: SergeyBiryukov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.4
Component: I18N | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+------------------
Comment (by SergeyBiryukov):
Replying to [comment:15 nacin]:
> `did_action('init')` is fine, as it returns true the moment init fires
I've tried to use `did_action('init')`, but in that case the message is
displayed even without any plugins, because `$wp->init()` calls
`wp_get_current_user()` exactly before init fires: [[BR]]
http://core.trac.wordpress.org/browser/tags/3.3/wp-settings.php#L294
[[BR]]
http://core.trac.wordpress.org/browser/tags/3.3/wp-includes/class-
wp.php#L442
Part of `$wp_actions` stack:
{{{
[after_setup_theme] => 1
[auth_cookie_valid] => 1
[set_current_user] => 1
[init] => 1
}}}
Refreshed the patch to continue after showing `_doing_it_wrong()`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14024#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list