Permalink
Browse files

Register default taxonomies before theme functions are loaded to sati…

…sfy themes that don't wait until init to call taxonomy functions. Default taxonomies are registered again during init so that translations are handled correctly. Props Denis-de-Bernardy. fixes #9644 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@11573 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
ryan
ryan committed Jun 15, 2009
1 parent fc67a81 commit ae5848d393664fffe39b31a80277321306f65e12
Showing with 4 additions and 0 deletions.
  1. +4 −0 wp-settings.php
View
@@ -528,6 +528,10 @@ function wp_clone( $object ) {
require (ABSPATH . WPINC . '/vars.php');
+// make taxonomies available to plugins and themes
+// @plugin authors: warning: this gets registered again on the init hook
+create_initial_taxonomies();
+
// Check for hacks file if the option is enabled
if ( get_option('hack_file') ) {
if ( file_exists(ABSPATH . 'my-hacks.php') )

0 comments on commit ae5848d

Please sign in to comment.