[wp-trac] [WordPress Trac] #23758: Add hook after loading WordPress locale object
WordPress Trac
noreply at wordpress.org
Thu Mar 14 11:15:02 UTC 2013
#23758: Add hook after loading WordPress locale object
-------------------------+------------------------------
Reporter: alex-ye | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: 3.5.1
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Comment (by alex-ye):
Replying to [comment:2 SergeyBiryukov]:
> > "This is kind of lame, but is all we have for now. "
>
> For reference, this was added in [BB4350].
>
> The newer comment (in [BB4773]) says: "...hook in immediately after
everything is included (including the theme's functions.php)".
`after_setup_theme` seems to be the correct action for that, since the
proposed `after_load_locale` hook would run before the theme's
`functions.php` is included.
Yes , but I disagree with you about the correct action , Maybe some calls
in theme's functions.php require that the roles must be added before ..
Many hooks in WordPress run before the theme's functions.php is included
and this is not something to claim about .. after_load_locale hook can be
useful for plugins and not only for adding roles .. I think it could be
used in many things .
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23758#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list