From 7146ff8ced4b696508427a1c02d9aec950ec6b18 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 15 Jun 2009 21:53:51 +0000 Subject: [PATCH] Register default taxonomies before theme functions are loaded to satisfy 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: https://develop.svn.wordpress.org/trunk@11573 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-settings.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-settings.php b/wp-settings.php index 807703f52b..8d755e3576 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -528,6 +528,10 @@ if ( !defined( 'AUTOSAVE_INTERVAL' ) ) 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') )