From d7cde95f94d1f5f7539852e89bce964e0c2c9862 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 31 Aug 2009 23:15:33 -0400 Subject: [PATCH] fix minor things and ensure blank javascript files don't break plugin anymore --- comicpress-manager.php | 2 +- comicpress_manager_admin.php | 10 ++++++---- readme.txt | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/comicpress-manager.php b/comicpress-manager.php index 8b8c5fd..e1ffcaf 100644 --- a/comicpress-manager.php +++ b/comicpress-manager.php @@ -3,7 +3,7 @@ Plugin Name: ComicPress Manager Plugin URI: http://www.coswellproductions.com/wordpress/wordpress-plugins/ Description: Manage the comics within a ComicPress theme installation. -Version: 1.4.6 +Version: 1.4.7 Author: John Bintz Author URI: http://www.coswellproductions.com/wordpress/ diff --git a/comicpress_manager_admin.php b/comicpress_manager_admin.php index 45fe8f0..56b735e 100644 --- a/comicpress_manager_admin.php +++ b/comicpress_manager_admin.php @@ -668,7 +668,7 @@ function cpm_post_editor($width = 435, $is_import = false) { if (is_array($form_title_and_field)) { list($title, $field, $id) = $form_title_and_field; ?> > - + @@ -1809,7 +1809,9 @@ function cpm_include_javascript($name) { $file_to_use = $regular_file; if (file_exists($js_path . '/' . $minified_file)) { if (filemtime($js_path . '/' . $minified_file) >= filemtime($js_path . '/' . $regular_file)) { - $file_to_use = $minified_file; + if (filesize($js_path . '/' . $minified_file) > 0) { + $file_to_use = $minified_file; + } } } @@ -2141,7 +2143,7 @@ function cpm_show_comicpress_details() { properties['comiccat']) ?> -
  • +
  • blog_category_info['name'] ?> properties['blogcat']) ?>
  • @@ -2295,7 +2297,7 @@ function cpm_show_debug_info($display_none = true) { $new_output_config[$key] = $value; } - var_dump($new_output_config); + var_dump($new_output_config); // ignore var_dump ?>