Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 9826fcb06bfb3a5693c3d1e7da507cf783760550 1 parent 559a6e0
ryan authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 wp-settings.php
5 wp-settings.php
View
@@ -172,9 +172,10 @@
// 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 )
Please sign in to comment.
Something went wrong with that request. Please try again.