$versions ) { $max_version = '-10000'; $init_file = ''; foreach ( (array) $versions as $version => $file ) { if ( version_compare( $version, $max_version, '>' ) ) { $max_version = $version; $init_file = $file; } } if ( ! empty( $init_file ) ) $init_files[] = $init_file; } unset( $GLOBALS['it_classes_registration_list'] ); foreach ( (array) $init_files as $init_file ) require_once( $init_file ); do_action( 'it_libraries_loaded' ); } global $wp_version; if ( version_compare( $wp_version, '2.9.7', '>' ) ) add_action( 'after_setup_theme', 'it_registration_list_init' ); else add_action( 'set_current_user', 'it_registration_list_init' ); }