From 703351c79e86cc6bb357bd40f7dc75a7da1e7a51 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 9 Dec 2018 11:37:26 +0300 Subject: [PATCH] remove theme supports-version etc checking --- classes/pref/prefs.php | 4 ++-- include/functions.php | 25 +++---------------------- index.php | 2 +- prefs.php | 2 +- 4 files changed, 7 insertions(+), 26 deletions(-) diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 6c7a45953..4af0bef33 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -552,10 +552,10 @@ class Pref_Prefs extends Handler_Protected { $themes = array_merge(glob("themes/*.php"), glob("themes/*.css"), glob("themes.local/*.css")); $themes = array_map("basename", $themes); - $themes = array_filter($themes, "theme_valid"); + $themes = array_filter($themes, "theme_exists"); asort($themes); - if (!theme_valid($value)) $value = "default.php"; + if (!theme_exists($value)) $value = "default.php"; print "