change loading order of classes

This commit is contained in:
John Bintz 2010-01-04 19:58:38 -05:00
parent 3cb97c0cf4
commit 6820d73ee6
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ if ($comicpress_options['remove_wptexturize']) {
$dirs_to_search = array_unique(array(get_template_directory(), get_stylesheet_directory()));
$__comicpress_handlable_classes = array();
foreach ($dirs_to_search as $dir) {
foreach (array('widgets' => 'php', 'functions' => 'php', 'classes' => 'inc') as $folder => $extension) {
foreach (array('classes' => 'inc', 'widgets' => 'php', 'functions' => 'php') as $folder => $extension) {
foreach (glob($dir . "/${folder}/*.${extension}") as $__file) {
require_once($__file);
$__class_name = preg_replace('#\..*$#', '', basename($__file));