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

git-svn-id: http://svn.automattic.com/wordpress/trunk@14041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-04-08 16:45:18 +00:00
parent 559a6e0855
commit 9826fcb06b
1 changed files with 3 additions and 2 deletions

View File

@ -172,9 +172,10 @@ wp_ssl_constants( );
// Create common globals. // Create common globals.
require( ABSPATH . WPINC . '/vars.php' ); require( ABSPATH . WPINC . '/vars.php' );
// Make taxonomies available to plugins and themes. // Make taxonomies and posts available to plugins and themes.
// @plugin authors: warning: this gets registered again on the init hook. // @plugin authors: warning: these get registered again on the init hook.
create_initial_taxonomies(); create_initial_taxonomies();
create_initial_post_types();
// Load active plugins. // Load active plugins.
foreach ( wp_get_active_and_valid_plugins() as $plugin ) foreach ( wp_get_active_and_valid_plugins() as $plugin )