[wp-trac] [WordPress Trac] #26746: Avoid translating several times post type and taxonomy default labels
WordPress Trac
noreply at wordpress.org
Sun May 18 08:46:21 UTC 2014
#26746: Avoid translating several times post type and taxonomy default labels
-------------------------------+--------------------------
Reporter: Chouby | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.0
Component: Posts, Post Types | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch | Focuses: performance
-------------------------------+--------------------------
Comment (by Rarst):
I think this can be pushed further. The current state without patch is
regenerating labels on every call. The current patch will regenerate
labels on every call until `did_action('init')` state change.
Then why don't we generate labels once before and once after state change?
Also timing-wise locale is available tad earlier than `init` at
`after_setup_theme`, makes sense to check for that one instead in case
CPTs are already getting registered in third party code.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26746#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list