Make WordPress Core


Ignore:
Timestamp:
04/08/2010 04:45:18 PM (15 years ago)
Author:
ryan
Message:

Call create_initial_post_types() before plugins and themes are loaded so that premature post API calls don't fail. fixes #12918

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r14000 r14041  
    173173require( ABSPATH . WPINC . '/vars.php' );
    174174
    175 // Make taxonomies available to plugins and themes.
    176 // @plugin authors: warning: this gets registered again on the init hook.
     175// Make taxonomies and posts available to plugins and themes.
     176// @plugin authors: warning: these get registered again on the init hook.
    177177create_initial_taxonomies();
     178create_initial_post_types();
    178179
    179180// Load active plugins.
Note: See TracChangeset for help on using the changeset viewer.