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 2.8.1

git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@11574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-06-15 21:54:12 +00:00
parent 61c836b9d3
commit 8530c27fd9
1 changed files with 4 additions and 0 deletions

View File

@ -528,6 +528,10 @@ if ( !defined( 'AUTOSAVE_INTERVAL' ) )
require (ABSPATH . WPINC . '/vars.php'); 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 // Check for hacks file if the option is enabled
if ( get_option('hack_file') ) { if ( get_option('hack_file') ) {
if ( file_exists(ABSPATH . 'my-hacks.php') ) if ( file_exists(ABSPATH . 'my-hacks.php') )