From 9b546c68fc36523578d54fec5207a10eb3fc8145 Mon Sep 17 00:00:00 2001 From: donncha Date: Wed, 12 Jul 2006 15:10:29 +0000 Subject: WP Merge git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@663 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/admin-functions.php | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'wp-admin/admin-functions.php') diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index fba1748..60f45f3 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -1267,30 +1267,6 @@ function edInsertContent(myField, myValue) { '; } -function validate_current_theme() { - $theme_loc = 'wp-content/themes'; - $theme_root = ABSPATH.$theme_loc; - - $template = get_settings('template'); - $stylesheet = get_settings('stylesheet'); - - if (($template != 'default') && (!file_exists( get_template_directory() . "/index.php"))) { - update_option('template', 'default'); - update_option('stylesheet', 'default'); - do_action('switch_theme', 'Default'); - return false; - } - - if (($stylesheet != 'default') && (!file_exists( get_stylesheet_directory() . "/style.css"))) { - update_option('template', 'default'); - update_option('stylesheet', 'default'); - do_action('switch_theme', 'Default'); - return false; - } - - return true; -} - function get_broken_themes() { global $wp_broken_themes; -- cgit