Head Cleaner - Version 1.0.2

Version Description

Download this release

Release Info

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

Code changes from version 1.0.1 to 1.0.2

Files changed (3) hide show
  1. head-cleaner.php +9 -4
  2. readme.txt +1 -13
  3. readme_ja.txt +2 -11
head-cleaner.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Head Cleaner
4
- Version: 1.0.1
5
  Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
6
  Description: Cleaning tags from your WordPress header and footer.
7
  Author: wokamoto
@@ -147,6 +147,11 @@ class HeadCleanerController extends wokController {
147
  private $mtime_start;
148
 
149
  private $filters;
 
 
 
 
 
150
 
151
  /**********************************************************
152
  * Constructor
@@ -1733,15 +1738,15 @@ class HeadCleanerController extends wokController {
1733
  if (empty($tag) && function_exists('current_filter'))
1734
  $tag = current_filter();
1735
 
1736
- if (! (isset($this->options['priority'][$tag]) && count($this->options['priority'][$tag]) > 0) )
1737
- return;
1738
-
1739
  $active_filters = (isset($wp_filter[$tag])
1740
  ? $wp_filter[$tag]
1741
  : array());
1742
  $custom_priority = (isset($this->options['priority'][$tag])
1743
  ? $this->options['priority'][$tag]
1744
  : array());
 
 
 
1745
  foreach ($active_filters as $priority => $filters) {
1746
  foreach ($filters as $filter) {
1747
  $function_name = (is_array($filter['function'])
1
  <?php
2
  /*
3
  Plugin Name: Head Cleaner
4
+ Version: 1.0.2
5
  Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
6
  Description: Cleaning tags from your WordPress header and footer.
7
  Author: wokamoto
147
  private $mtime_start;
148
 
149
  private $filters;
150
+ private $no_conflict = array(
151
+ 'stats_footer' // WordPress.com Stats
152
+ , 'uga_wp_footer_track' // Ultimate Google Analytics
153
+ , 'comment_quicktags' // Comment Quicktags
154
+ );
155
 
156
  /**********************************************************
157
  * Constructor
1738
  if (empty($tag) && function_exists('current_filter'))
1739
  $tag = current_filter();
1740
 
 
 
 
1741
  $active_filters = (isset($wp_filter[$tag])
1742
  ? $wp_filter[$tag]
1743
  : array());
1744
  $custom_priority = (isset($this->options['priority'][$tag])
1745
  ? $this->options['priority'][$tag]
1746
  : array());
1747
+ foreach ($this->no_conflict as $function_name) {
1748
+ $custom_priority[$function_name] = HC_PRIORITY + 1;
1749
+ }
1750
  foreach ($active_filters as $priority => $filters) {
1751
  foreach ($filters as $filter) {
1752
  $function_name = (is_array($filter['function'])
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wokamoto
3
  Tags: head, header, footer, javascript, css, optimization, minified
4
  Requires at least: 2.5
5
  Tested up to: 2.7.1
6
- Stable tag: 1.0.1
7
 
8
  Cleaning tags from your WordPress header and footer.
9
 
@@ -57,18 +57,6 @@ The theme you are using plug-ins do not work together properly.
57
  If you do not work properly, after stopping all the other plug-in plug-in,
58
  To activate each one, please check if any conflicts with plugins.
59
 
60
- **[Comment Quicktags](http://www.enblogopedia.com/wordpress-plugin-comment-quicktags-reloaded/ "Comment Quicktags")**
61
-
62
- The setting "Active Filters" - "Head filters" Please exclude the following to select a filter.
63
-
64
- * `comment_quicktags`
65
-
66
- **[Ultimate Google Analytics](http://www.oratransplant.nl/uga "Ultimate Google Analytics")**
67
-
68
- The setting "Active Filters" - "Bottom filters" Please exclude the following to select a filter.
69
-
70
- * `uga_wp_footer_track`
71
-
72
  == Screenshots ==
73
 
74
  1. The admin page
3
  Tags: head, header, footer, javascript, css, optimization, minified
4
  Requires at least: 2.5
5
  Tested up to: 2.7.1
6
+ Stable tag: 1.0.2
7
 
8
  Cleaning tags from your WordPress header and footer.
9
 
57
  If you do not work properly, after stopping all the other plug-in plug-in,
58
  To activate each one, please check if any conflicts with plugins.
59
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  == Screenshots ==
61
 
62
  1. The admin page
readme_ja.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wokamoto
3
  Tags: head optimization, javascript, css, optimization, minified
4
  Requires at least: 2.5
5
  Tested up to: 2.7.1
6
- Stable tag: 1.0.1
7
 
8
  Head �� footer �����|�����܂��B
9
 
@@ -63,7 +63,7 @@ Head Cleaner
63
  �����Ɏg�p���Ă���v���O�C���E�e�[�}�ɂ���Ă͐���ɓ��삵�܂���B
64
  ����ɓ��삵�Ȃ��ꍇ�́A���̃v���O�C���ȊO�̂��ׂẴv���O�C�����~������A��ˆ�—L�������āA�ǂ̃v���O�C���Ƌ������邩�m���߂Ă݂Ă��������B
65
  ��������v���O�C�������������ꍇ�A��҂܂ŘA������������Ɣ��ɏ�����܂��B
66
- [http://dogmap.jp/2009/02/20/head-cleaner/](http://dogmap.jp/2009/02/20/head-cleaner/ "")
67
 
68
 
69
  ���݁A�ȉ��̃v���O�C���Ɠ����Ɏg�p����ƁA����ɓ��삵�Ȃ����Ƃ��񍐂���Ă��܂��B
@@ -72,15 +72,6 @@ Head Cleaner
72
  �@�ꕔ�‹��Łu�^�C�g���̏��������v�I�v�V�������L���ɂȂ��Ă���ƁA���̃v���O�C�������퓮�삵�Ȃ��Ƃ����񍐂�����܂����B
73
  �@�ʏ�͖�肪����܂��񂪁A��肪���������ꍇ�́u�^�C�g���̏��������v���I�t�ɂ��āA�^�C�g���̏��������͕ʃv���O�C�����g�p����悤�ɂ��Ă��������B
74
 
75
- **[Comment Quicktags](http://www.enblogopedia.com/wordpress-plugin-comment-quicktags-reloaded/ "Comment Quicktags")**
76
- �@�ݒ��ʂ́u�A�N�e�B�u�ȃt�B���^�v-�u�t�b�^�̈�̃A�N�e�B�u�ȃt�B���^�v����A�ȉ��̃t�B���^��I�����đΏۊO�ɂ��Ă��������B
77
- �@�ucomment_quicktags�v
78
-
79
- **[Ultimate Google Analytics](http://www.oratransplant.nl/uga "Ultimate Google Analytics")**
80
- �@�ݒ��ʂ́u�A�N�e�B�u�ȃt�B���^�v-�u�t�b�^�̈�̃A�N�e�B�u�ȃt�B���^�v����A�ȉ��̃t�B���^��I�����đΏۊO�ɂ��Ă��������B
81
- �@�uuga_wp_footer_track�v
82
- �@����� Ultimate Google Analytics �̏����o���R�[�h�� Head Cleaner �̐��`�ΏۊO�ɂȂ�܂��B
83
-
84
  == Screenshots ==
85
 
86
  1. �Ǘ����
3
  Tags: head optimization, javascript, css, optimization, minified
4
  Requires at least: 2.5
5
  Tested up to: 2.7.1
6
+ Stable tag: 1.0.2
7
 
8
  Head �� footer �����|�����܂��B
9
 
63
  �����Ɏg�p���Ă���v���O�C���E�e�[�}�ɂ���Ă͐���ɓ��삵�܂���B
64
  ����ɓ��삵�Ȃ��ꍇ�́A���̃v���O�C���ȊO�̂��ׂẴv���O�C�����~������A��ˆ�—L�������āA�ǂ̃v���O�C���Ƌ������邩�m���߂Ă݂Ă��������B
65
  ��������v���O�C�������������ꍇ�A��҂܂ŘA������������Ɣ��ɏ�����܂��B
66
+ [http://dogmap.jp/2009/02/20/head-cleaner/](http://dogmap.jp/2009/02/20/head-cleaner/ "http://dogmap.jp/2009/02/20/head-cleaner/")
67
 
68
 
69
  ���݁A�ȉ��̃v���O�C���Ɠ����Ɏg�p����ƁA����ɓ��삵�Ȃ����Ƃ��񍐂���Ă��܂��B
72
  �@�ꕔ�‹��Łu�^�C�g���̏��������v�I�v�V�������L���ɂȂ��Ă���ƁA���̃v���O�C�������퓮�삵�Ȃ��Ƃ����񍐂�����܂����B
73
  �@�ʏ�͖�肪����܂��񂪁A��肪���������ꍇ�́u�^�C�g���̏��������v���I�t�ɂ��āA�^�C�g���̏��������͕ʃv���O�C�����g�p����悤�ɂ��Ă��������B
74
 
 
 
 
 
 
 
 
 
 
75
  == Screenshots ==
76
 
77
  1. �Ǘ����