Version Description
Download this release
Release Info
Developer | wokamoto |
Plugin | Head Cleaner |
Version | 1.4.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.4.0.2 to 1.4.0.3
- head-cleaner.php +8 -8
- readme.txt +1 -1
- readme_ja.txt +1 -1
head-cleaner.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Head Cleaner
|
4 |
-
Version: 1.4.0.
|
5 |
Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
|
6 |
Description: Cleaning tags from your WordPress header and footer.
|
7 |
Author: wokamoto
|
@@ -2144,8 +2144,8 @@ E__O__T;
|
|
2144 |
foreach ($filters as $function_name){
|
2145 |
if ( ! preg_match('/^(' . implode('|', $this->default_head_filters) . ')$/i', $function_name)) {
|
2146 |
$out .= '<tr>';
|
2147 |
-
$out .= '<th><input type="checkbox" name="'.$
|
2148 |
-
$out .= '<th><input type="checkbox" name="'.$
|
2149 |
$out .= '<td>'.$function_name.'</td>';
|
2150 |
if ($this->options['debug_mode'])
|
2151 |
$out .= '<td>( '.$priority.' )</td>';
|
@@ -2182,8 +2182,8 @@ E__O__T;
|
|
2182 |
foreach ($filters as $function_name){
|
2183 |
if ( ! preg_match('/^(' . implode('|', $this->default_head_filters) . ')$/i', $function_name)) {
|
2184 |
$out .= '<tr>';
|
2185 |
-
$out .= '<th><input type="checkbox" name="'.$
|
2186 |
-
$out .= '<th><input type="checkbox" name="'.$
|
2187 |
$out .= '<td>'.$function_name.'</td>';
|
2188 |
if ($this->options['debug_mode'])
|
2189 |
$out .= '<td>( '.$priority.' )</td>';
|
@@ -2209,8 +2209,8 @@ E__O__T;
|
|
2209 |
foreach ($this->options['head_js'] as $javascript => $value) {
|
2210 |
$remove = (array_search( $javascript, (array)$this->options["remove_js"] ) !== FALSE);
|
2211 |
$out .= '<tr>';
|
2212 |
-
$out .= '<th><input type="checkbox" name="'.$
|
2213 |
-
$out .= '<th><input type="checkbox" name="'.$
|
2214 |
$out .= '<td>'.$javascript.'</td>';
|
2215 |
$i++;
|
2216 |
}
|
@@ -2624,4 +2624,4 @@ if (function_exists('register_activation_hook'))
|
|
2624 |
register_activation_hook(__FILE__, array(&$head_cleaner, 'activation'));
|
2625 |
if (function_exists('register_deactivation_hook'))
|
2626 |
register_deactivation_hook(__FILE__, array(&$head_cleaner, 'deactivation'));
|
2627 |
-
?>
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Head Cleaner
|
4 |
+
Version: 1.4.0.3
|
5 |
Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
|
6 |
Description: Cleaning tags from your WordPress header and footer.
|
7 |
Author: wokamoto
|
2144 |
foreach ($filters as $function_name){
|
2145 |
if ( ! preg_match('/^(' . implode('|', $this->default_head_filters) . ')$/i', $function_name)) {
|
2146 |
$out .= '<tr>';
|
2147 |
+
$out .= '<th><input type="checkbox" name="head_filters['.$i.']" value="'.$function_name.'"'.($priority > HeadCleaner::PRIORITY ? ' checked="true"' : '').' /></th>';
|
2148 |
+
$out .= '<th><input type="checkbox" name="head_remove['.$i.']" value="'.$function_name.'"'.($priority <= 0 ? ' checked="true"' : '').' /></th>';
|
2149 |
$out .= '<td>'.$function_name.'</td>';
|
2150 |
if ($this->options['debug_mode'])
|
2151 |
$out .= '<td>( '.$priority.' )</td>';
|
2182 |
foreach ($filters as $function_name){
|
2183 |
if ( ! preg_match('/^(' . implode('|', $this->default_head_filters) . ')$/i', $function_name)) {
|
2184 |
$out .= '<tr>';
|
2185 |
+
$out .= '<th><input type="checkbox" name="foot_filters['.$i.']" value="'.$function_name.'"'.($priority > HeadCleaner::PRIORITY ? ' checked="true"' : '').' /></th>';
|
2186 |
+
$out .= '<th><input type="checkbox" name="foot_remove['.$i.']" value="'.$function_name.'"'.($priority <= 0 ? ' checked="true"' : '').' /></th>';
|
2187 |
$out .= '<td>'.$function_name.'</td>';
|
2188 |
if ($this->options['debug_mode'])
|
2189 |
$out .= '<td>( '.$priority.' )</td>';
|
2209 |
foreach ($this->options['head_js'] as $javascript => $value) {
|
2210 |
$remove = (array_search( $javascript, (array)$this->options["remove_js"] ) !== FALSE);
|
2211 |
$out .= '<tr>';
|
2212 |
+
$out .= '<th><input type="checkbox" name="head_js['.$i.']" value="'.$javascript.'"'.($value === FALSE ? ' checked="true"' : '').' /></th>';
|
2213 |
+
$out .= '<th><input type="checkbox" name="remove_js['.$i.']" value="'.$javascript.'"'.($remove !== FALSE ? ' checked="true"' : '').' /></th>';
|
2214 |
$out .= '<td>'.$javascript.'</td>';
|
2215 |
$i++;
|
2216 |
}
|
2624 |
register_activation_hook(__FILE__, array(&$head_cleaner, 'activation'));
|
2625 |
if (function_exists('register_deactivation_hook'))
|
2626 |
register_deactivation_hook(__FILE__, array(&$head_cleaner, 'deactivation'));
|
2627 |
+
?>
|
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.2
|
7 |
-
Stable tag: 1.4.0.
|
8 |
|
9 |
Cleaning tags from your WordPress header and footer.
|
10 |
|
4 |
Tags: head, header, footer, javascript, css, optimization, minified, performance
|
5 |
Requires at least: 2.5
|
6 |
Tested up to: 3.0.2
|
7 |
+
Stable tag: 1.4.0.3
|
8 |
|
9 |
Cleaning tags from your WordPress header and footer.
|
10 |
|
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.2
|
7 |
-
Stable tag: 1.4.0.
|
8 |
|
9 |
Head と footer をお掃除します。
|
10 |
|
4 |
Tags: head optimization, javascript, css, optimization, minified, performance
|
5 |
Requires at least: 2.5
|
6 |
Tested up to: 3.0.2
|
7 |
+
Stable tag: 1.4.0.3
|
8 |
|
9 |
Head と footer をお掃除します。
|
10 |
|