Head Cleaner - Version 1.3.5

Version Description

Download this release

Release Info

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

Code changes from version 1.3.4 to 1.3.5

Files changed (3) hide show
  1. head-cleaner.php +16 -7
  2. readme.txt +4 -1
  3. readme_ja.txt +2 -6
head-cleaner.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Head Cleaner
4
- Version: 1.3.4
5
  Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
6
  Description: Cleaning tags from your WordPress header and footer.
7
  Author: wokamoto
@@ -109,7 +109,7 @@ if (!class_exists('wokController') || !class_exists('wokScriptManager'))
109
  //**************************************************************************************
110
  class HeadCleanerController extends wokController {
111
  public $plugin_name = 'head-cleaner';
112
- public $plugin_ver = '1.3.4';
113
 
114
  // Deafault Options
115
  private $options_default = array(
@@ -178,7 +178,8 @@ class HeadCleanerController extends wokController {
178
  );
179
 
180
  private $ob_handlers = array(
181
- 'All_in_One_SEO_Pack::output_callback_for_title' => 'enable' ,
 
182
  );
183
 
184
 
@@ -310,10 +311,11 @@ class HeadCleanerController extends wokController {
310
  $ob_handlers = (array) ob_list_handlers();
311
  if ( count($ob_handlers) > 0 ) {
312
  foreach ( $ob_handlers as $ob_handler ) {
313
- if ( isset($this->ob_handlers[$ob_handler]) )
314
  $this->ob_handlers[$ob_handler] = true;
 
 
315
  }
316
- ob_end_flush();
317
  }
318
 
319
  ob_start(array(&$this, 'head_cleaner'));
@@ -339,10 +341,11 @@ class HeadCleanerController extends wokController {
339
  $ob_handlers = (array) ob_list_handlers();
340
  if ( count($ob_handlers) > 0 ) {
341
  foreach ( $ob_handlers as $ob_handler ) {
342
- if ( isset($this->ob_handlers[$ob_handler]) )
343
  $this->ob_handlers[$ob_handler] = true;
 
 
344
  }
345
- ob_end_flush();
346
  }
347
 
348
  ob_start(array(&$this, 'footer_cleaner'));
@@ -366,6 +369,12 @@ class HeadCleanerController extends wokController {
366
  if ( isset($aiosp) )
367
  $content = $aiosp->rewrite_title($content);
368
  break;
 
 
 
 
 
 
369
  default :
370
  break;
371
  }
1
  <?php
2
  /*
3
  Plugin Name: Head Cleaner
4
+ Version: 1.3.5
5
  Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
6
  Description: Cleaning tags from your WordPress header and footer.
7
  Author: wokamoto
109
  //**************************************************************************************
110
  class HeadCleanerController extends wokController {
111
  public $plugin_name = 'head-cleaner';
112
+ public $plugin_ver = '1.3.5';
113
 
114
  // Deafault Options
115
  private $options_default = array(
178
  );
179
 
180
  private $ob_handlers = array(
181
+ 'All_in_One_SEO_Pack::output_callback_for_title' => false ,
182
+ 'wpSEO::exe_modify_content' => false ,
183
  );
184
 
185
 
311
  $ob_handlers = (array) ob_list_handlers();
312
  if ( count($ob_handlers) > 0 ) {
313
  foreach ( $ob_handlers as $ob_handler ) {
314
+ if ( isset($this->ob_handlers[$ob_handler]) ) {
315
  $this->ob_handlers[$ob_handler] = true;
316
+ ob_end_flush();
317
+ }
318
  }
 
319
  }
320
 
321
  ob_start(array(&$this, 'head_cleaner'));
341
  $ob_handlers = (array) ob_list_handlers();
342
  if ( count($ob_handlers) > 0 ) {
343
  foreach ( $ob_handlers as $ob_handler ) {
344
+ if ( isset($this->ob_handlers[$ob_handler]) ) {
345
  $this->ob_handlers[$ob_handler] = true;
346
+ ob_end_flush();
347
+ }
348
  }
 
349
  }
350
 
351
  ob_start(array(&$this, 'footer_cleaner'));
369
  if ( isset($aiosp) )
370
  $content = $aiosp->rewrite_title($content);
371
  break;
372
+ case 'wpSEO::exe_modify_content':
373
+ if ( isset($GLOBALS['wpSEO']) ) {
374
+ $wpSEO = $GLOBALS['wpSEO'];
375
+ $content = $wpSEO->exe_modify_content($content);
376
+ }
377
+ break;
378
  default :
379
  break;
380
  }
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: 2.9.1
7
- Stable tag: 1.3.4
8
 
9
  Cleaning tags from your WordPress header and footer.
10
 
@@ -88,6 +88,9 @@ Head Cleaner Ver.1.1.5 includes 'php_browscap.ini' .
88
 
89
  == Changelog ==
90
 
 
 
 
91
  **1.3.4 - February 9, 2010**
92
  Fixed a conflict with "[All in One SEO Pack](http://wordpress.org/extend/plugins/all-in-one-seo-pack/)".
93
 
4
  Tags: head, header, footer, javascript, css, optimization, minified, performance
5
  Requires at least: 2.5
6
  Tested up to: 2.9.1
7
+ Stable tag: 1.3.5
8
 
9
  Cleaning tags from your WordPress header and footer.
10
 
88
 
89
  == Changelog ==
90
 
91
+ **1.3.5 - February 10, 2010**
92
+ Fixed a conflict with "[wpSEO](http://www.wpseo.org/)".
93
+
94
  **1.3.4 - February 9, 2010**
95
  Fixed a conflict with "[All in One SEO Pack](http://wordpress.org/extend/plugins/all-in-one-seo-pack/)".
96
 
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: 2.9.1
7
- Stable tag: 1.3.4
8
 
9
  Head �� footer �����|�����܂��B
10
 
@@ -76,7 +76,7 @@ Head Cleaner
76
  **[All in One SEO Pack](http://wordpress.org/extend/plugins/all-in-one-seo-pack/ "All in One SEO Pack")**
77
  �@�ꕔ�‹��Łu�^�C�g���̏��������v�I�v�V�������L���ɂȂ��Ă���ƁA���̃v���O�C�������퓮�삵�Ȃ��Ƃ����񍐂�����܂����B
78
  �@�ʏ�͖�肪����܂��񂪁A��肪���������ꍇ�́u�^�C�g���̏��������v���I�t�ɂ��āA�^�C�g���̏��������͕ʃv���O�C�����g�p����悤�ɂ��Ă��������B
79
-
80
 
81
  = CSS, JavaScript �̃L���b�V���t�@�C�����쐬����܂��� =
82
 
@@ -91,7 +91,3 @@ Head Cleaner
91
  ���̊֐�������ɋ@�\���邽�߂ɂ́Aphp.ini �� browscap �ݒ肪�A�V�X�e����� browscap.ini �̐��m�Ȉʒu�� �w���Ă���K�v������܂��B
92
  �Q�ƁF[PHP: get_browser](http://jp.php.net/manual/ja/function.get-browser.php "PHP: get_browser - Manual")
93
 
94
- == Screenshots ==
95
-
96
- 1. �Ǘ����
97
- 2. YSlow ����
4
  Tags: head optimization, javascript, css, optimization, minified, performance
5
  Requires at least: 2.5
6
  Tested up to: 2.9.1
7
+ Stable tag: 1.3.5
8
 
9
  Head �� footer �����|�����܂��B
10
 
76
  **[All in One SEO Pack](http://wordpress.org/extend/plugins/all-in-one-seo-pack/ "All in One SEO Pack")**
77
  �@�ꕔ�‹��Łu�^�C�g���̏��������v�I�v�V�������L���ɂȂ��Ă���ƁA���̃v���O�C�������퓮�삵�Ȃ��Ƃ����񍐂�����܂����B
78
  �@�ʏ�͖�肪����܂��񂪁A��肪���������ꍇ�́u�^�C�g���̏��������v���I�t�ɂ��āA�^�C�g���̏��������͕ʃv���O�C�����g�p����悤�ɂ��Ă��������B
79
+ ( Ver.1.3.4 �ŏC�� )
80
 
81
  = CSS, JavaScript �̃L���b�V���t�@�C�����쐬����܂��� =
82
 
91
  ���̊֐�������ɋ@�\���邽�߂ɂ́Aphp.ini �� browscap �ݒ肪�A�V�X�e����� browscap.ini �̐��m�Ȉʒu�� �w���Ă���K�v������܂��B
92
  �Q�ƁF[PHP: get_browser](http://jp.php.net/manual/ja/function.get-browser.php "PHP: get_browser - Manual")
93