Head Cleaner - Version 1.4.2.3

Version Description

Download this release

Release Info

Developer wokamoto
Plugin Icon wp plugin Head Cleaner
Version 1.4.2.3
Comparing to
See all releases

Code changes from version 1.4.2.2 to 1.4.2.3

head-cleaner.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Head Cleaner
4
- Version: 1.4.2.2
5
  Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
6
  Description: Cleaning tags from your WordPress header and footer.
7
  Author: wokamoto
1
  <?php
2
  /*
3
  Plugin Name: Head Cleaner
4
+ Version: 1.4.2.3
5
  Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
6
  Description: Cleaning tags from your WordPress header and footer.
7
  Author: wokamoto
includes/common-controller.php CHANGED
@@ -27,7 +27,7 @@ class wokController {
27
  var $admin_option, $admin_action, $admin_hook;
28
  var $note, $error;
29
  var $charset;
30
- var $wp25, $wp26, $wp27, $wp28, $wp29, $wp30, $wp31;
31
  var $inline_js;
32
 
33
  var $jquery_js = 'includes/js/jquery-1.4.2.min.js';
@@ -49,6 +49,7 @@ class wokController {
49
  $this->wp29 = version_compare($wp_version, "2.9", ">=");
50
  $this->wp30 = version_compare($wp_version, "3.0", ">=");
51
  $this->wp31 = version_compare($wp_version, "3.1", ">=");
 
52
 
53
  $this->setPluginDir($file);
54
  $this->loadTextdomain();
27
  var $admin_option, $admin_action, $admin_hook;
28
  var $note, $error;
29
  var $charset;
30
+ var $wp25, $wp26, $wp27, $wp28, $wp29, $wp30, $wp31, $wp32;
31
  var $inline_js;
32
 
33
  var $jquery_js = 'includes/js/jquery-1.4.2.min.js';
49
  $this->wp29 = version_compare($wp_version, "2.9", ">=");
50
  $this->wp30 = version_compare($wp_version, "3.0", ">=");
51
  $this->wp31 = version_compare($wp_version, "3.1", ">=");
52
+ $this->wp32 = version_compare($wp_version, "3.2", ">=");
53
 
54
  $this->setPluginDir($file);
55
  $this->loadTextdomain();
includes/regist_ajax_libs.php CHANGED
@@ -6,7 +6,7 @@ License:
6
  Released under the GPL license
7
  http://www.gnu.org/copyleft/gpl.html
8
 
9
- Copyright 2009 - 2010 wokamoto (email : wokamoto1973@gmail.com)
10
 
11
  This program is free software; you can redistribute it and/or modify
12
  it under the terms of the GNU General Public License as published by
@@ -22,15 +22,31 @@ License:
22
  along with this program; if not, write to the Free Software
23
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24
  */
 
 
25
  if (!defined('AJAX_LIBS_GOOGLE')) define('AJAX_LIBS_GOOGLE', true);
26
  if (!defined('AJAX_LIBS_YUI')) define('AJAX_LIBS_YUI', true);
27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  if (AJAX_LIBS_GOOGLE) {
29
  define('GOOGLE_JS_API_URL', 'http://www.google.com/jsapi');
30
  define('AJAX_LIBS_GOOGLE_URL', 'http://ajax.googleapis.com/ajax/libs/');
31
  define('AJAX_LIBS_PROTOTYPE_JS_VER', '1.6.0.3');
32
  define('AJAX_LIBS_SCRIPTACULOUS_VER', '1.8.2');
33
- define('AJAX_LIBS_JQUERY_VER', '1.4.4');
34
  define('AJAX_LIBS_JQUERY_UI_VER', '1.7');
35
  define('AJAX_LIBS_MOOTOOLS_VER', '1.11');
36
  define('AJAX_LIBS_DOJO_VER', '1.1.1');
6
  Released under the GPL license
7
  http://www.gnu.org/copyleft/gpl.html
8
 
9
+ Copyright 2009 - 2011 wokamoto (email : wokamoto1973@gmail.com)
10
 
11
  This program is free software; you can redistribute it and/or modify
12
  it under the terms of the GNU General Public License as published by
22
  along with this program; if not, write to the Free Software
23
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24
  */
25
+ global $wp_version;
26
+
27
  if (!defined('AJAX_LIBS_GOOGLE')) define('AJAX_LIBS_GOOGLE', true);
28
  if (!defined('AJAX_LIBS_YUI')) define('AJAX_LIBS_YUI', true);
29
 
30
+ $jquery_ver = '1.6.1';
31
+ if (version_compare($wp_version, "3.2", ">"))
32
+ $jquery_ver = '1.6.1';
33
+ elseif (version_compare($wp_version, "3.1", ">="))
34
+ $jquery_ver = '1.4.4';
35
+ elseif (version_compare($wp_version, "3.0", ">="))
36
+ $jquery_ver = '1.4.2';
37
+ elseif (version_compare($wp_version, "2.8", ">="))
38
+ $jquery_ver = '1.3.2';
39
+ elseif (version_compare($wp_version, "2.6", ">="))
40
+ $jquery_ver = '1.2.6';
41
+ elseif (version_compare($wp_version, "2.5", ">="))
42
+ $jquery_ver = '1.2.3';
43
+
44
  if (AJAX_LIBS_GOOGLE) {
45
  define('GOOGLE_JS_API_URL', 'http://www.google.com/jsapi');
46
  define('AJAX_LIBS_GOOGLE_URL', 'http://ajax.googleapis.com/ajax/libs/');
47
  define('AJAX_LIBS_PROTOTYPE_JS_VER', '1.6.0.3');
48
  define('AJAX_LIBS_SCRIPTACULOUS_VER', '1.8.2');
49
+ define('AJAX_LIBS_JQUERY_VER', $jquery_ver);
50
  define('AJAX_LIBS_JQUERY_UI_VER', '1.7');
51
  define('AJAX_LIBS_MOOTOOLS_VER', '1.11');
52
  define('AJAX_LIBS_DOJO_VER', '1.1.1');
includes/simple_html_dom.php CHANGED
@@ -972,3 +972,4 @@ class simple_html_dom {
972
  function getElementsByTagName($name, $idx=-1) {return $this->find($name, $idx);}
973
  function loadFile() {$args = func_get_args();$this->load(call_user_func_array('file_get_contents', $args), true);}
974
  }
 
972
  function getElementsByTagName($name, $idx=-1) {return $this->find($name, $idx);}
973
  function loadFile() {$args = func_get_args();$this->load(call_user_func_array('file_get_contents', $args), true);}
974
  }
975
+ ?>
js_css.php CHANGED
@@ -3,6 +3,8 @@ if (!defined('HC_CACHE_DIR'))
3
  define('HC_CACHE_DIR', 'cache/head-cleaner');
4
  if (!defined('HC_EXPIRED_JS_CSS'))
5
  define('HC_EXPIRED_JS_CSS', 2592000); // 60 * 60 * 24 * 30 [sec.]
 
 
6
 
7
  $error = false;
8
  if (isset($_GET['f']) && isset($_GET['t'])) {
3
  define('HC_CACHE_DIR', 'cache/head-cleaner');
4
  if (!defined('HC_EXPIRED_JS_CSS'))
5
  define('HC_EXPIRED_JS_CSS', 2592000); // 60 * 60 * 24 * 30 [sec.]
6
+ if (!defined('SHORTINIT'))
7
+ define('SHORTINIT', true );
8
 
9
  $error = false;
10
  if (isset($_GET['f']) && isset($_GET['t'])) {
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: wokamoto
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJCY7XB8F4&lc=JP&item_name=WordPress%20Plugins&item_number=wp%2dplugins&currency_code=JPY&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
4
  Tags: head, header, footer, javascript, css, optimization, minified, performance, facebook, OGP
5
  Requires at least: 2.5
6
- Tested up to: 3.1
7
- Stable tag: 1.4.2.2
8
 
9
  Cleaning tags from your WordPress header and footer.
10
 
@@ -91,6 +91,9 @@ Head Cleaner Ver.1.1.5 includes 'php_browscap.ini' .
91
 
92
  == Changelog ==
93
 
 
 
 
94
  **1.4.2.2 - April 26, 2011**
95
  Fixed a bug, wp_die() error messages none at line 3021.
96
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJCY7XB8F4&lc=JP&item_name=WordPress%20Plugins&item_number=wp%2dplugins&currency_code=JPY&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
4
  Tags: head, header, footer, javascript, css, optimization, minified, performance, facebook, OGP
5
  Requires at least: 2.5
6
+ Tested up to: 3.2-beta2
7
+ Stable tag: 1.4.2.3
8
 
9
  Cleaning tags from your WordPress header and footer.
10
 
91
 
92
  == Changelog ==
93
 
94
+ **1.4.2.3 - June 8, 2011**
95
+ Support for WordPress 3.2.
96
+
97
  **1.4.2.2 - April 26, 2011**
98
  Fixed a bug, wp_die() error messages none at line 3021.
99
 
readme_ja.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: wokamoto
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJCY7XB8F4&lc=JP&item_name=WordPress%20Plugins&item_number=wp%2dplugins&currency_code=JPY&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
4
  Tags: head optimization, javascript, css, optimization, minified, performance
5
  Requires at least: 2.5
6
- Tested up to: 3.1
7
- Stable tag: 1.4.2.2
8
 
9
  Head と footer をお掃除します。
10
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJCY7XB8F4&lc=JP&item_name=WordPress%20Plugins&item_number=wp%2dplugins&currency_code=JPY&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
4
  Tags: head optimization, javascript, css, optimization, minified, performance
5
  Requires at least: 2.5
6
+ Tested up to: 3.2-beta2
7
+ Stable tag: 1.4.2.3
8
 
9
  Head と footer をお掃除します。
10