Head Cleaner - Version 1.3.11

Version Description

Download this release

Release Info

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

Code changes from version 1.3.10 to 1.3.11

head-cleaner.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Head Cleaner
4
- Version: 1.3.10
5
  Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
6
  Description: Cleaning tags from your WordPress header and footer.
7
  Author: wokamoto
@@ -153,7 +153,7 @@ if (!class_exists('wokController') || !class_exists('wokScriptManager'))
153
  //**************************************************************************************
154
  class HeadCleaner extends wokController {
155
  public $plugin_name = 'head-cleaner';
156
- public $plugin_ver = '1.3.9';
157
 
158
  // Deafault Options
159
  private $options_default = array(
@@ -496,6 +496,7 @@ class HeadCleaner extends wokController {
496
  // for IE conditional tag
497
  $IE_conditional_tag_pattern = '/<\!-+[ \t]*\[if[ \t]+%sIE%s[ \t]*?\][ \t]*>(.*?)<\![ \t]*\[endif\][ \t]*-+>/ism';
498
  $IE_conditional_tags = array();
 
499
  if ($this->options['ie_conditional']) {
500
  $ua = trim(strtolower($_SERVER['HTTP_USER_AGENT']));
501
  $ie = (strpos($ua, 'msie') !== false)
@@ -559,7 +560,7 @@ class HeadCleaner extends wokController {
559
  $xmlns = (defined('HC_XMLNS') ? HC_XMLNS : 'http://www.w3.org/1999/xhtml');
560
  $xml_lang = $this->lang;
561
  $lang = $this->lang;
562
- if (preg_match_all('/ +([^ ]*)=[\'"]([^\'"]*)[\'"]/', $html_tag, $mathes, PREG_SET_ORDER)) {
563
  foreach ((array) $matches as $match) {
564
  switch ($match[1]){
565
  case 'xmlns': $xmlns = $match[2]; break;
@@ -618,8 +619,12 @@ class HeadCleaner extends wokController {
618
  }
619
  }
620
  unset($wk_matches);
621
- if ( !empty($wk_text) )
622
- $wk_inline_css[$media] .= trim($wk_text) . "\n";
 
 
 
 
623
  }
624
  $inline_css = '';
625
  if ($this->options['cache_enabled']) {
@@ -752,7 +757,7 @@ class HeadCleaner extends wokController {
752
  if (!$this->options['ie_conditional'] && count($IE_conditional_tags) > 0) {
753
  $IE_conditional_tag_pattern = '/(<\!-+[ \t]*\[if[ \t]+.*IE.*[ \t]*?\][ \t]*>)[ \t\r\n]*(.*?)[ \t\r\n]*(<\![ \t]*\[endif\][ \t]*-+>)/ism';
754
  foreach ((array) $IE_conditional_tags as $IE_conditional_tag) {
755
- if (preg_match($IE_conditional_tag_pattern, $IE_conditional_tag[0])) {
756
  $IE_tag = trim(preg_replace($IE_conditional_tag_pattern, "$1\n$2\n$3", $IE_conditional_tag[0])) . "\n";
757
  if ( strpos(strtolower($IE_tag), '<link') !== false )
758
  $css_tag = trim($css_tag) . "\n" . $IE_tag;
@@ -1107,7 +1112,7 @@ class HeadCleaner extends wokController {
1107
  private function _file_read($filename) {
1108
  $content = false;
1109
  if (preg_match('/^https?:\/\//i', $filename)) {
1110
- $content = file_get_contents($filename);
1111
  } else {
1112
  $filename = realpath($filename);
1113
  if ($filename !== FALSE && file_exists($filename)) {
1
  <?php
2
  /*
3
  Plugin Name: Head Cleaner
4
+ Version: 1.3.11
5
  Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
6
  Description: Cleaning tags from your WordPress header and footer.
7
  Author: wokamoto
153
  //**************************************************************************************
154
  class HeadCleaner extends wokController {
155
  public $plugin_name = 'head-cleaner';
156
+ public $plugin_ver = '1.3.11';
157
 
158
  // Deafault Options
159
  private $options_default = array(
496
  // for IE conditional tag
497
  $IE_conditional_tag_pattern = '/<\!-+[ \t]*\[if[ \t]+%sIE%s[ \t]*?\][ \t]*>(.*?)<\![ \t]*\[endif\][ \t]*-+>/ism';
498
  $IE_conditional_tags = array();
499
+ $ie6 = false;
500
  if ($this->options['ie_conditional']) {
501
  $ua = trim(strtolower($_SERVER['HTTP_USER_AGENT']));
502
  $ie = (strpos($ua, 'msie') !== false)
560
  $xmlns = (defined('HC_XMLNS') ? HC_XMLNS : 'http://www.w3.org/1999/xhtml');
561
  $xml_lang = $this->lang;
562
  $lang = $this->lang;
563
+ if (preg_match_all('/ +([^ ]*)=[\'"]([^\'"]*)[\'"]/', $html_tag, $matches, PREG_SET_ORDER)) {
564
  foreach ((array) $matches as $match) {
565
  switch ($match[1]){
566
  case 'xmlns': $xmlns = $match[2]; break;
619
  }
620
  }
621
  unset($wk_matches);
622
+ if ( !empty($wk_text) ) {
623
+ if ( !isset($wk_inline_css[$media]) )
624
+ $wk_inline_css[$media] = trim($wk_text) . "\n";
625
+ else
626
+ $wk_inline_css[$media] .= trim($wk_text) . "\n";
627
+ }
628
  }
629
  $inline_css = '';
630
  if ($this->options['cache_enabled']) {
757
  if (!$this->options['ie_conditional'] && count($IE_conditional_tags) > 0) {
758
  $IE_conditional_tag_pattern = '/(<\!-+[ \t]*\[if[ \t]+.*IE.*[ \t]*?\][ \t]*>)[ \t\r\n]*(.*?)[ \t\r\n]*(<\![ \t]*\[endif\][ \t]*-+>)/ism';
759
  foreach ((array) $IE_conditional_tags as $IE_conditional_tag) {
760
+ if (isset($IE_conditional_tag[0]) && preg_match($IE_conditional_tag_pattern, $IE_conditional_tag[0])) {
761
  $IE_tag = trim(preg_replace($IE_conditional_tag_pattern, "$1\n$2\n$3", $IE_conditional_tag[0])) . "\n";
762
  if ( strpos(strtolower($IE_tag), '<link') !== false )
763
  $css_tag = trim($css_tag) . "\n" . $IE_tag;
1112
  private function _file_read($filename) {
1113
  $content = false;
1114
  if (preg_match('/^https?:\/\//i', $filename)) {
1115
+ $content = @file_get_contents($filename);
1116
  } else {
1117
  $filename = realpath($filename);
1118
  if ($filename !== FALSE && file_exists($filename)) {
includes/common-controller.php CHANGED
@@ -140,7 +140,7 @@ class wokController {
140
  }
141
 
142
  // Add Admin Option Page
143
- function addOptionPage($page_title, $function, $capability = 9, $menu_title = '', $file = '') {
144
  if ($menu_title == '')
145
  $menu_title = $page_title;
146
  if ($file == '')
@@ -148,7 +148,7 @@ class wokController {
148
  $this->admin_hook['option'] = add_options_page($page_title, $menu_title, $capability, $file, $function);
149
  }
150
 
151
- function addManagementPage($page_title, $function, $capability = 9, $menu_title = '', $file = '') {
152
  if ($menu_title == '')
153
  $menu_title = $page_title;
154
  if ($file == '')
@@ -156,7 +156,7 @@ class wokController {
156
  $this->admin_hook['management'] = add_management_page($page_title, $menu_title, $capability, $file, $function);
157
  }
158
 
159
- function addThemePage($page_title, $function, $capability = 9, $menu_title = '', $file = '') {
160
  if ($menu_title == '')
161
  $menu_title = $page_title;
162
  if ($file == '')
@@ -164,7 +164,7 @@ class wokController {
164
  $this->admin_hook['theme'] = add_theme_page($page_title, $menu_title, $capability, $file, $function);
165
  }
166
 
167
- function addSubmenuPage($parent, $page_title, $function, $capability = 9, $menu_title = '', $file = '') {
168
  if ($menu_title == '')
169
  $menu_title = $page_title;
170
  if ($file == '')
@@ -172,11 +172,11 @@ class wokController {
172
  $this->admin_hook[$parent] = add_submenu_page($parent, $page_title, $menu_title, $capability, $file, $function);
173
  }
174
 
175
- function addMediaPage($page_title, $function, $capability = 9, $menu_title = '', $file = '') {
176
  $this->addSubmenuPage(($this->wp27 ? 'upload.php' : 'edit.php'), $page_title, $function, $capability, $menu_title, $file);
177
  }
178
 
179
- function addEditPage($page_title, $function, $capability = 9, $menu_title = '', $file = '') {
180
  $this->addSubmenuPage('edit.php', $page_title, $function, $capability, $menu_title, $file);
181
  }
182
 
140
  }
141
 
142
  // Add Admin Option Page
143
+ function addOptionPage($page_title, $function, $capability = 'administrator', $menu_title = '', $file = '') {
144
  if ($menu_title == '')
145
  $menu_title = $page_title;
146
  if ($file == '')
148
  $this->admin_hook['option'] = add_options_page($page_title, $menu_title, $capability, $file, $function);
149
  }
150
 
151
+ function addManagementPage($page_title, $function, $capability = 'administrator', $menu_title = '', $file = '') {
152
  if ($menu_title == '')
153
  $menu_title = $page_title;
154
  if ($file == '')
156
  $this->admin_hook['management'] = add_management_page($page_title, $menu_title, $capability, $file, $function);
157
  }
158
 
159
+ function addThemePage($page_title, $function, $capability = 'administrator', $menu_title = '', $file = '') {
160
  if ($menu_title == '')
161
  $menu_title = $page_title;
162
  if ($file == '')
164
  $this->admin_hook['theme'] = add_theme_page($page_title, $menu_title, $capability, $file, $function);
165
  }
166
 
167
+ function addSubmenuPage($parent, $page_title, $function, $capability = 'administrator', $menu_title = '', $file = '') {
168
  if ($menu_title == '')
169
  $menu_title = $page_title;
170
  if ($file == '')
172
  $this->admin_hook[$parent] = add_submenu_page($parent, $page_title, $menu_title, $capability, $file, $function);
173
  }
174
 
175
+ function addMediaPage($page_title, $function, $capability = 'administrator', $menu_title = '', $file = '') {
176
  $this->addSubmenuPage(($this->wp27 ? 'upload.php' : 'edit.php'), $page_title, $function, $capability, $menu_title, $file);
177
  }
178
 
179
+ function addEditPage($page_title, $function, $capability = 'administrator', $menu_title = '', $file = '') {
180
  $this->addSubmenuPage('edit.php', $page_title, $function, $capability, $menu_title, $file);
181
  }
182
 
includes/regist_ajax_libs.php CHANGED
@@ -44,7 +44,7 @@ if (AJAX_LIBS_GOOGLE) {
44
 
45
  if (AJAX_LIBS_YUI) {
46
  define('AJAX_LIBS_YUI_VER', '2.7.0');
47
- define('AJAX_LIBS_YUI', 'http://yui.yahooapis.com/'.AJAX_LIBS_YUI_VER.'/build/');
48
  }
49
 
50
  //**************************************************************************************
@@ -86,11 +86,11 @@ function register_script( $handle, $src = '', $deps = false, $ver = false ) {
86
  // dequeue_script
87
  //**************************************************************************************
88
  function dequeue_script( $handle ) {
 
 
89
  if (!class_exists('WP_Scripts'))
90
  return false;
91
 
92
- global $wp_scripts;
93
-
94
  if (!is_a($wp_scripts, 'WP_Scripts'))
95
  $wp_scripts = new WP_Scripts();
96
  $wp_scripts->dequeue( $handle );
@@ -102,9 +102,11 @@ function dequeue_script( $handle ) {
102
  if (function_exists('wp_enqueue_style')) :
103
 
104
  function enqueue_ajax_lib_stylesheets() {
105
- if ( !is_a($wp_scripts, 'WP_Scripts') ) return;
106
-
107
  global $wp_scripts;
 
 
 
 
108
  $stylesheets = array('yui', 'yui-reset', 'yui-base', 'yui-fonts', 'yui-grids', 'yui-container', 'yui-menu', 'yui-autocomplete', 'yui-button', 'yui-calendar', 'yui-colorpicker', 'yui-datatable', 'yui-editor', 'yui-imagecropper', 'yui-layout', 'yui-resize', 'yui-tabview', 'yui-treeview', 'yui-logger', 'yui-profilerviewer');
109
  foreach ( $stylesheets as $value ) {
110
  if ( array_search( $value, $wp_scripts->queue ) != false )
@@ -119,7 +121,7 @@ endif;
119
  // script src cleanup
120
  //**************************************************************************************
121
  function script_src_cleanup($src) {
122
- if (strstr($src, GOOGLE_JS_API_URL) != false || strstr($src, AJAX_LIBS_GOOGLE_URL) != false || strstr($src, AJAX_LIBS_YUI) != false)
123
  $src = preg_replace("/(\?|\&|\&(amp|#038);)ver=.*$/i", "", $src);
124
  return $src;
125
  }
@@ -214,73 +216,73 @@ if (AJAX_LIBS_YUI && class_exists('WP_Scripts')) :
214
  // site: http://developer.yahoo.com/yui/
215
 
216
  // YUI Core
217
- register_script('yui-core', AJAX_LIBS_YUI.'yahoo/yahoo-min.js', false, AJAX_LIBS_YUI_VER);
218
- register_script('yui-dom', AJAX_LIBS_YUI.'dom/dom-min.js', false, AJAX_LIBS_YUI_VER);
219
- register_script('yui-event', AJAX_LIBS_YUI.'event/event-min.js', false, AJAX_LIBS_YUI_VER);
220
  register_script('yui', '', array('yui-core', 'yui-dom', 'yui-event'), AJAX_LIBS_YUI_VER);
221
  if (function_exists('wp_register_style')) {
222
- wp_register_style('yui-reset', AJAX_LIBS_YUI.'reset/reset-min.css', false, AJAX_LIBS_YUI_VER);
223
- wp_register_style('yui-base', AJAX_LIBS_YUI.'base/base-min.css', false, AJAX_LIBS_YUI_VER);
224
- wp_register_style('yui-fonts', AJAX_LIBS_YUI.'fonts/fonts-min.css', false, AJAX_LIBS_YUI_VER);
225
- wp_register_style('yui-grids', AJAX_LIBS_YUI.'grids/grids-min.css', false, AJAX_LIBS_YUI_VER);
226
  wp_register_style('yui', '', array('yui-reset', 'yui-base', 'yui-fonts', 'yui-grids'), AJAX_LIBS_YUI_VER);
227
  }
228
 
229
  // YUI Utilities
230
- register_script('yui-element', AJAX_LIBS_YUI.'element/element-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
231
- register_script('yui-animation', AJAX_LIBS_YUI.'animation/animation-min.js', array('yui'), AJAX_LIBS_YUI_VER);
232
- register_script('yui-connection', AJAX_LIBS_YUI.'connection/connection-min.js', array('yui'), AJAX_LIBS_YUI_VER);
233
- register_script('yui-cookie', AJAX_LIBS_YUI.'cookie/cookie-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
234
- register_script('yui-datasource', AJAX_LIBS_YUI.'datasource/datasource-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
235
- register_script('yui-dragdrop', AJAX_LIBS_YUI.'dragdrop/dragdrop-min.js', array('yui'), AJAX_LIBS_YUI_VER);
236
- register_script('yui-get', AJAX_LIBS_YUI.'get/get-min.js', array('yui-core'), AJAX_LIBS_YUI_VER);
237
- register_script('yui-history', AJAX_LIBS_YUI.'history/history-min.js', array('yui'), AJAX_LIBS_YUI_VER);
238
- register_script('yui-imageloader', AJAX_LIBS_YUI.'imageloader/imageloader-min.js', array('yui'), AJAX_LIBS_YUI_VER);
239
- register_script('yui-json', AJAX_LIBS_YUI.'json/json-min.js', array('yui'), AJAX_LIBS_YUI_VER);
240
- register_script('yui-resize', AJAX_LIBS_YUI.'resize/resize-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
241
- register_script('yui-selector', AJAX_LIBS_YUI.'selector/selector-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
242
- register_script('yui-yuiloader', AJAX_LIBS_YUI.'yuiloader/yuiloader-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
243
 
244
  // YUI's UI Controls
245
- register_script('yui-container', AJAX_LIBS_YUI.'container/container-min.js', array('yui'), AJAX_LIBS_YUI_VER);
246
- register_script('yui-menu', AJAX_LIBS_YUI.'menu/menu-min.js', array('yui'), AJAX_LIBS_YUI_VER);
247
- register_script('yui-autocomplete', AJAX_LIBS_YUI.'autocomplete/autocomplete-min.js', array('yui'), AJAX_LIBS_YUI_VER);
248
- register_script('yui-button', AJAX_LIBS_YUI.'button/button-min.js', array('yui'), AJAX_LIBS_YUI_VER);
249
- register_script('yui-calendar', AJAX_LIBS_YUI.'calendar/calendar-min.js', array('yui'), AJAX_LIBS_YUI_VER);
250
- register_script('yui-charts', AJAX_LIBS_YUI.'charts/charts-experimental-min.js', array('yui'), AJAX_LIBS_YUI_VER);
251
- register_script('yui-colorpicker', AJAX_LIBS_YUI.'colorpicker/colorpicker-min.js', array('yui'), AJAX_LIBS_YUI_VER);
252
- register_script('yui-datatable', AJAX_LIBS_YUI.'datatable/datatable-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
253
- register_script('yui-editor', AJAX_LIBS_YUI.'editor/editor-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
254
- register_script('yui-imagecropper', AJAX_LIBS_YUI.'imagecropper/imagecropper-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
255
- register_script('yui-layout', AJAX_LIBS_YUI.'layout/layout-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
256
- register_script('yui-slider', AJAX_LIBS_YUI.'slider/slider-min.js', array('yui'), AJAX_LIBS_YUI_VER);
257
- register_script('yui-tabview', AJAX_LIBS_YUI.'tabview/tabview-min.js', array('yui'), AJAX_LIBS_YUI_VER);
258
- register_script('yui-treeview', AJAX_LIBS_YUI.'treeview/treeview-min.js', array('yui'), AJAX_LIBS_YUI_VER);
259
- register_script('yui-uploader', AJAX_LIBS_YUI.'uploader/uploader-experimental-min.js', array('yui'), AJAX_LIBS_YUI_VER);
260
  if (function_exists('wp_register_style')) {
261
- wp_register_style('yui-container', AJAX_LIBS_YUI.'container/assets/skins/sam/container.css', array('yui'), AJAX_LIBS_YUI_VER);
262
- wp_register_style('yui-menu', AJAX_LIBS_YUI.'menu/assets/skins/sam/menu.css', array('yui'), AJAX_LIBS_YUI_VER);
263
- wp_register_style('yui-autocomplete', AJAX_LIBS_YUI.'autocomplete/assets/skins/sam/autocomplete.css', array('yui'), AJAX_LIBS_YUI_VER);
264
- wp_register_style('yui-button', AJAX_LIBS_YUI.'button/assets/skins/sam/button.css', array('yui'), AJAX_LIBS_YUI_VER);
265
- wp_register_style('yui-calendar', AJAX_LIBS_YUI.'calendar/assets/skins/sam/calendar.css', array('yui'), AJAX_LIBS_YUI_VER);
266
- wp_register_style('yui-colorpicker', AJAX_LIBS_YUI.'colorpicker/assets/skins/sam/colorpicker.css', array('yui'), AJAX_LIBS_YUI_VER);
267
- wp_register_style('yui-datatable', AJAX_LIBS_YUI.'datatable/assets/skins/sam/datatable.css', array('yui'), AJAX_LIBS_YUI_VER);
268
- wp_register_style('yui-editor', AJAX_LIBS_YUI.'editor/assets/skins/sam/editor.css', array('yui'), AJAX_LIBS_YUI_VER);
269
- wp_register_style('yui-imagecropper', AJAX_LIBS_YUI.'imagecropper/assets/skins/sam/imagecropper.css', array('yui'), AJAX_LIBS_YUI_VER);
270
- wp_register_style('yui-layout', AJAX_LIBS_YUI.'layout/assets/skins/sam/layout.css', array('yui'), AJAX_LIBS_YUI_VER);
271
- wp_register_style('yui-resize', AJAX_LIBS_YUI.'resize/assets/skins/sam/resize.css', array('yui'), AJAX_LIBS_YUI_VER);
272
- wp_register_style('yui-tabview', AJAX_LIBS_YUI.'tabview/assets/skins/sam/tabview.css', array('yui'), AJAX_LIBS_YUI_VER);
273
- wp_register_style('yui-treeview', AJAX_LIBS_YUI.'treeview/assets/skins/sam/treeview.css', array('yui'), AJAX_LIBS_YUI_VER);
274
  }
275
 
276
  // YUI Developer Tools: Logging, Testing and Profiling
277
- register_script('yui-logger', AJAX_LIBS_YUI.'logger/logger-min.js', array('yui'), AJAX_LIBS_YUI_VER);
278
- register_script('yui-profiler', AJAX_LIBS_YUI.'profiler/profiler-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
279
- register_script('yui-profilerviewer', AJAX_LIBS_YUI.'profilerviewer/profilerviewer-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
280
- register_script('yui-yuitest', AJAX_LIBS_YUI.'yuitest/yuitest-min.js', array('yui'), AJAX_LIBS_YUI_VER);
281
  if (function_exists('wp_register_style')) {
282
- wp_register_style('yui-logger', AJAX_LIBS_YUI.'logger/assets/skins/sam/logger.css', array('yui'), AJAX_LIBS_YUI_VER);
283
- wp_register_style('yui-profilerviewer', AJAX_LIBS_YUI.'profilerviewer/assets/skins/sam/profilerviewer.css', array('yui'), AJAX_LIBS_YUI_VER);
284
  }
285
 
286
  endif;
44
 
45
  if (AJAX_LIBS_YUI) {
46
  define('AJAX_LIBS_YUI_VER', '2.7.0');
47
+ define('AJAX_LIBS_YUI_URL', 'http://yui.yahooapis.com/'.AJAX_LIBS_YUI_VER.'/build/');
48
  }
49
 
50
  //**************************************************************************************
86
  // dequeue_script
87
  //**************************************************************************************
88
  function dequeue_script( $handle ) {
89
+ global $wp_scripts;
90
+
91
  if (!class_exists('WP_Scripts'))
92
  return false;
93
 
 
 
94
  if (!is_a($wp_scripts, 'WP_Scripts'))
95
  $wp_scripts = new WP_Scripts();
96
  $wp_scripts->dequeue( $handle );
102
  if (function_exists('wp_enqueue_style')) :
103
 
104
  function enqueue_ajax_lib_stylesheets() {
 
 
105
  global $wp_scripts;
106
+
107
+ if ( !is_a($wp_scripts, 'WP_Scripts') )
108
+ return;
109
+
110
  $stylesheets = array('yui', 'yui-reset', 'yui-base', 'yui-fonts', 'yui-grids', 'yui-container', 'yui-menu', 'yui-autocomplete', 'yui-button', 'yui-calendar', 'yui-colorpicker', 'yui-datatable', 'yui-editor', 'yui-imagecropper', 'yui-layout', 'yui-resize', 'yui-tabview', 'yui-treeview', 'yui-logger', 'yui-profilerviewer');
111
  foreach ( $stylesheets as $value ) {
112
  if ( array_search( $value, $wp_scripts->queue ) != false )
121
  // script src cleanup
122
  //**************************************************************************************
123
  function script_src_cleanup($src) {
124
+ if (strstr($src, GOOGLE_JS_API_URL) != false || strstr($src, AJAX_LIBS_GOOGLE_URL) != false || strstr($src, AJAX_LIBS_YUI_URL) != false)
125
  $src = preg_replace("/(\?|\&|\&(amp|#038);)ver=.*$/i", "", $src);
126
  return $src;
127
  }
216
  // site: http://developer.yahoo.com/yui/
217
 
218
  // YUI Core
219
+ register_script('yui-core', AJAX_LIBS_YUI_URL.'yahoo/yahoo-min.js', false, AJAX_LIBS_YUI_VER);
220
+ register_script('yui-dom', AJAX_LIBS_YUI_URL.'dom/dom-min.js', false, AJAX_LIBS_YUI_VER);
221
+ register_script('yui-event', AJAX_LIBS_YUI_URL.'event/event-min.js', false, AJAX_LIBS_YUI_VER);
222
  register_script('yui', '', array('yui-core', 'yui-dom', 'yui-event'), AJAX_LIBS_YUI_VER);
223
  if (function_exists('wp_register_style')) {
224
+ wp_register_style('yui-reset', AJAX_LIBS_YUI_URL.'reset/reset-min.css', false, AJAX_LIBS_YUI_VER);
225
+ wp_register_style('yui-base', AJAX_LIBS_YUI_URL.'base/base-min.css', false, AJAX_LIBS_YUI_VER);
226
+ wp_register_style('yui-fonts', AJAX_LIBS_YUI_URL.'fonts/fonts-min.css', false, AJAX_LIBS_YUI_VER);
227
+ wp_register_style('yui-grids', AJAX_LIBS_YUI_URL.'grids/grids-min.css', false, AJAX_LIBS_YUI_VER);
228
  wp_register_style('yui', '', array('yui-reset', 'yui-base', 'yui-fonts', 'yui-grids'), AJAX_LIBS_YUI_VER);
229
  }
230
 
231
  // YUI Utilities
232
+ register_script('yui-element', AJAX_LIBS_YUI_URL.'element/element-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
233
+ register_script('yui-animation', AJAX_LIBS_YUI_URL.'animation/animation-min.js', array('yui'), AJAX_LIBS_YUI_VER);
234
+ register_script('yui-connection', AJAX_LIBS_YUI_URL.'connection/connection-min.js', array('yui'), AJAX_LIBS_YUI_VER);
235
+ register_script('yui-cookie', AJAX_LIBS_YUI_URL.'cookie/cookie-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
236
+ register_script('yui-datasource', AJAX_LIBS_YUI_URL.'datasource/datasource-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
237
+ register_script('yui-dragdrop', AJAX_LIBS_YUI_URL.'dragdrop/dragdrop-min.js', array('yui'), AJAX_LIBS_YUI_VER);
238
+ register_script('yui-get', AJAX_LIBS_YUI_URL.'get/get-min.js', array('yui-core'), AJAX_LIBS_YUI_VER);
239
+ register_script('yui-history', AJAX_LIBS_YUI_URL.'history/history-min.js', array('yui'), AJAX_LIBS_YUI_VER);
240
+ register_script('yui-imageloader', AJAX_LIBS_YUI_URL.'imageloader/imageloader-min.js', array('yui'), AJAX_LIBS_YUI_VER);
241
+ register_script('yui-json', AJAX_LIBS_YUI_URL.'json/json-min.js', array('yui'), AJAX_LIBS_YUI_VER);
242
+ register_script('yui-resize', AJAX_LIBS_YUI_URL.'resize/resize-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
243
+ register_script('yui-selector', AJAX_LIBS_YUI_URL.'selector/selector-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
244
+ register_script('yui-yuiloader', AJAX_LIBS_YUI_URL.'yuiloader/yuiloader-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
245
 
246
  // YUI's UI Controls
247
+ register_script('yui-container', AJAX_LIBS_YUI_URL.'container/container-min.js', array('yui'), AJAX_LIBS_YUI_VER);
248
+ register_script('yui-menu', AJAX_LIBS_YUI_URL.'menu/menu-min.js', array('yui'), AJAX_LIBS_YUI_VER);
249
+ register_script('yui-autocomplete', AJAX_LIBS_YUI_URL.'autocomplete/autocomplete-min.js', array('yui'), AJAX_LIBS_YUI_VER);
250
+ register_script('yui-button', AJAX_LIBS_YUI_URL.'button/button-min.js', array('yui'), AJAX_LIBS_YUI_VER);
251
+ register_script('yui-calendar', AJAX_LIBS_YUI_URL.'calendar/calendar-min.js', array('yui'), AJAX_LIBS_YUI_VER);
252
+ register_script('yui-charts', AJAX_LIBS_YUI_URL.'charts/charts-experimental-min.js', array('yui'), AJAX_LIBS_YUI_VER);
253
+ register_script('yui-colorpicker', AJAX_LIBS_YUI_URL.'colorpicker/colorpicker-min.js', array('yui'), AJAX_LIBS_YUI_VER);
254
+ register_script('yui-datatable', AJAX_LIBS_YUI_URL.'datatable/datatable-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
255
+ register_script('yui-editor', AJAX_LIBS_YUI_URL.'editor/editor-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
256
+ register_script('yui-imagecropper', AJAX_LIBS_YUI_URL.'imagecropper/imagecropper-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
257
+ register_script('yui-layout', AJAX_LIBS_YUI_URL.'layout/layout-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
258
+ register_script('yui-slider', AJAX_LIBS_YUI_URL.'slider/slider-min.js', array('yui'), AJAX_LIBS_YUI_VER);
259
+ register_script('yui-tabview', AJAX_LIBS_YUI_URL.'tabview/tabview-min.js', array('yui'), AJAX_LIBS_YUI_VER);
260
+ register_script('yui-treeview', AJAX_LIBS_YUI_URL.'treeview/treeview-min.js', array('yui'), AJAX_LIBS_YUI_VER);
261
+ register_script('yui-uploader', AJAX_LIBS_YUI_URL.'uploader/uploader-experimental-min.js', array('yui'), AJAX_LIBS_YUI_VER);
262
  if (function_exists('wp_register_style')) {
263
+ wp_register_style('yui-container', AJAX_LIBS_YUI_URL.'container/assets/skins/sam/container.css', array('yui'), AJAX_LIBS_YUI_VER);
264
+ wp_register_style('yui-menu', AJAX_LIBS_YUI_URL.'menu/assets/skins/sam/menu.css', array('yui'), AJAX_LIBS_YUI_VER);
265
+ wp_register_style('yui-autocomplete', AJAX_LIBS_YUI_URL.'autocomplete/assets/skins/sam/autocomplete.css', array('yui'), AJAX_LIBS_YUI_VER);
266
+ wp_register_style('yui-button', AJAX_LIBS_YUI_URL.'button/assets/skins/sam/button.css', array('yui'), AJAX_LIBS_YUI_VER);
267
+ wp_register_style('yui-calendar', AJAX_LIBS_YUI_URL.'calendar/assets/skins/sam/calendar.css', array('yui'), AJAX_LIBS_YUI_VER);
268
+ wp_register_style('yui-colorpicker', AJAX_LIBS_YUI_URL.'colorpicker/assets/skins/sam/colorpicker.css', array('yui'), AJAX_LIBS_YUI_VER);
269
+ wp_register_style('yui-datatable', AJAX_LIBS_YUI_URL.'datatable/assets/skins/sam/datatable.css', array('yui'), AJAX_LIBS_YUI_VER);
270
+ wp_register_style('yui-editor', AJAX_LIBS_YUI_URL.'editor/assets/skins/sam/editor.css', array('yui'), AJAX_LIBS_YUI_VER);
271
+ wp_register_style('yui-imagecropper', AJAX_LIBS_YUI_URL.'imagecropper/assets/skins/sam/imagecropper.css', array('yui'), AJAX_LIBS_YUI_VER);
272
+ wp_register_style('yui-layout', AJAX_LIBS_YUI_URL.'layout/assets/skins/sam/layout.css', array('yui'), AJAX_LIBS_YUI_VER);
273
+ wp_register_style('yui-resize', AJAX_LIBS_YUI_URL.'resize/assets/skins/sam/resize.css', array('yui'), AJAX_LIBS_YUI_VER);
274
+ wp_register_style('yui-tabview', AJAX_LIBS_YUI_URL.'tabview/assets/skins/sam/tabview.css', array('yui'), AJAX_LIBS_YUI_VER);
275
+ wp_register_style('yui-treeview', AJAX_LIBS_YUI_URL.'treeview/assets/skins/sam/treeview.css', array('yui'), AJAX_LIBS_YUI_VER);
276
  }
277
 
278
  // YUI Developer Tools: Logging, Testing and Profiling
279
+ register_script('yui-logger', AJAX_LIBS_YUI_URL.'logger/logger-min.js', array('yui'), AJAX_LIBS_YUI_VER);
280
+ register_script('yui-profiler', AJAX_LIBS_YUI_URL.'profiler/profiler-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
281
+ register_script('yui-profilerviewer', AJAX_LIBS_YUI_URL.'profilerviewer/profilerviewer-beta-min.js', array('yui'), AJAX_LIBS_YUI_VER);
282
+ register_script('yui-yuitest', AJAX_LIBS_YUI_URL.'yuitest/yuitest-min.js', array('yui'), AJAX_LIBS_YUI_VER);
283
  if (function_exists('wp_register_style')) {
284
+ wp_register_style('yui-logger', AJAX_LIBS_YUI_URL.'logger/assets/skins/sam/logger.css', array('yui'), AJAX_LIBS_YUI_VER);
285
+ wp_register_style('yui-profilerviewer', AJAX_LIBS_YUI_URL.'profilerviewer/assets/skins/sam/profilerviewer.css', array('yui'), AJAX_LIBS_YUI_VER);
286
  }
287
 
288
  endif;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJ
4
  Tags: head, header, footer, javascript, css, optimization, minified, performance
5
  Requires at least: 2.5
6
  Tested up to: 3.0
7
- Stable tag: 1.3.10
8
 
9
  Cleaning tags from your WordPress header and footer.
10
 
@@ -89,6 +89,9 @@ Head Cleaner Ver.1.1.5 includes 'php_browscap.ini' .
89
 
90
  == Changelog ==
91
 
 
 
 
92
  **1.3.7 - April 15, 2010**
93
  Fixed a bug, css @import interpreting the instructions.
94
 
4
  Tags: head, header, footer, javascript, css, optimization, minified, performance
5
  Requires at least: 2.5
6
  Tested up to: 3.0
7
+ Stable tag: 1.3.11
8
 
9
  Cleaning tags from your WordPress header and footer.
10
 
89
 
90
  == Changelog ==
91
 
92
+ **1.3.11 - July 7, 2010**
93
+ Minor bug fixes.
94
+
95
  **1.3.7 - April 15, 2010**
96
  Fixed a bug, css @import interpreting the instructions.
97
 
readme_ja.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJ
4
  Tags: head optimization, javascript, css, optimization, minified, performance
5
  Requires at least: 2.5
6
  Tested up to: 3.0
7
- Stable tag: 1.3.10
8
 
9
  Head �� footer �����|�����܂��B
10
 
4
  Tags: head optimization, javascript, css, optimization, minified, performance
5
  Requires at least: 2.5
6
  Tested up to: 3.0
7
+ Stable tag: 1.3.11
8
 
9
  Head �� footer �����|�����܂��B
10