Index: wp-settings.php
===================================================================
--- wp-settings.php	(revision 14186)
+++ wp-settings.php	(working copy)
@@ -711,10 +711,10 @@
 $wp_locale =& new WP_Locale();
 
 // Load functions for active theme.
+if ( file_exists(TEMPLATEPATH . '/functions.php') )
+  include(TEMPLATEPATH . '/functions.php');
 if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists(STYLESHEETPATH . '/functions.php') )
 	include(STYLESHEETPATH . '/functions.php');
-if ( file_exists(TEMPLATEPATH . '/functions.php') )
-	include(TEMPLATEPATH . '/functions.php');
 
 // Load in support for template functions which the theme supports
 require_if_theme_supports( 'post-thumbnails', ABSPATH . WPINC . '/post-thumbnail-template.php' );
