#19692 closed defect (bug) (wontfix)
create_initial_post_types() called twice.
| Reported by: | mikeschinkel | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Posts, Post Types | Version: | 2.8.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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
@
15 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This is done on purpose, for compatibility reasons. #12918 for post types, #9644 for taxonomies.