From fff8d4c5a97c28a1be0b8a78abe27a0eca40c6d6 Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Thu, 31 Dec 2009 15:10:18 -0800 Subject: [PATCH] PHP 5 is required for comicpress 2.9, on the dashboard it will give a message stating that an upgrade is necessary and to contact the host. Signed-off-by: Philip M. Hofer (Frumph) --- comicpress-debug.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/comicpress-debug.php b/comicpress-debug.php index 97026c5..a45284a 100644 --- a/comicpress-debug.php +++ b/comicpress-debug.php @@ -9,6 +9,13 @@ function comicpress_notice_debug() { $comicpress_options = comicpress_load_options(); $error = array(); + + if (floatval(phpversion()) < 5.0) { + $phpversion = phpversion(); + $error[] = array('header', __('You are using PHP version: ','comicpress'). $phpversion); + $error[] = __('Version 5 or higher is required for this theme to work correctly. Please check with your host about upgrading to a newer version.','comicpress'); + } + $post_cat_link = get_bloginfo('wpurl') . '/wp-admin/categories.php'; // Check Categories