#19692 closed defect (bug) (wontfix)
create_initial_post_types() called twice.
Reported by: | mikeschinkel | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.8.1 |
Component: | Posts, Post Types | Keywords: | |
Focuses: | Cc: |
Description
create_initial_post_types()
is called TWICE, first in /wp-settings.php
(line 189 of wp33) and then on a zero (0
) priority 'init'
hook.
It should only be called once, and ideally on a replaceable init
hook.
Related: #12539
Change History (6)
#3
follow-up:
↓ 5
@
13 years ago
It seems the second time is necesary for i18n: http://core.trac.wordpress.org/ticket/9644#comment:16
Note: See
TracTickets for help on using
tickets.
This is done on purpose, for compatibility reasons. #12918 for post types, #9644 for taxonomies.