From a214b120c48deccd142f039011e035489d74f407 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 8 Apr 2010 16:45:18 +0000 Subject: [PATCH] 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: https://develop.svn.wordpress.org/trunk@14041 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-settings.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-settings.php b/wp-settings.php index 197ecae177..4ee0ef372a 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -172,9 +172,10 @@ wp_ssl_constants( ); // Create common globals. require( ABSPATH . WPINC . '/vars.php' ); -// Make taxonomies available to plugins and themes. -// @plugin authors: warning: this gets registered again on the init hook. +// Make taxonomies and posts available to plugins and themes. +// @plugin authors: warning: these get registered again on the init hook. create_initial_taxonomies(); +create_initial_post_types(); // Load active plugins. foreach ( wp_get_active_and_valid_plugins() as $plugin )