Version Description
Download this release
Release Info
Developer | wokamoto |
Plugin | Head Cleaner |
Version | 1.4.3 |
Comparing to | |
See all releases |
Code changes from version 1.4.2.12 to 1.4.3
- head-cleaner.php +7 -3
- includes/common-controller.php +2 -1
- readme.txt +6 -2
head-cleaner.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Head Cleaner
|
4 |
-
Version: 1.4.
|
5 |
Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
|
6 |
Description: Cleaning tags from your WordPress header and footer.
|
7 |
Author: wokamoto
|
@@ -12,7 +12,7 @@ Domain Path: /languages/
|
|
12 |
License:
|
13 |
Released under the GPL license
|
14 |
http://www.gnu.org/copyleft/gpl.html
|
15 |
-
Copyright 2009 -
|
16 |
|
17 |
This program is free software; you can redistribute it and/or modify
|
18 |
it under the terms of the GNU General Public License as published by
|
@@ -3217,7 +3217,11 @@ jQuery(function($){
|
|
3217 |
// get the thumbnail
|
3218 |
$thumb = '';
|
3219 |
if ( function_exists('has_post_thumbnail') && has_post_thumbnail($id) ) {
|
3220 |
-
|
|
|
|
|
|
|
|
|
3221 |
} else {
|
3222 |
$attachments = get_children(array(
|
3223 |
'post_parent' => $id ,
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Head Cleaner
|
4 |
+
Version: 1.4.3
|
5 |
Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
|
6 |
Description: Cleaning tags from your WordPress header and footer.
|
7 |
Author: wokamoto
|
12 |
License:
|
13 |
Released under the GPL license
|
14 |
http://www.gnu.org/copyleft/gpl.html
|
15 |
+
Copyright 2009 - 2015 wokamoto (email : wokamoto1973@gmail.com)
|
16 |
|
17 |
This program is free software; you can redistribute it and/or modify
|
18 |
it under the terms of the GNU General Public License as published by
|
3217 |
// get the thumbnail
|
3218 |
$thumb = '';
|
3219 |
if ( function_exists('has_post_thumbnail') && has_post_thumbnail($id) ) {
|
3220 |
+
if ($this->wp44) {
|
3221 |
+
$thumb = get_the_post_thumbnail_url($id);
|
3222 |
+
} else {
|
3223 |
+
$thumb = preg_replace("/^.*['\"](https?:\/\/[^'\"]*)['\"].*/i", "$1", get_the_post_thumbnail($id));
|
3224 |
+
}
|
3225 |
} else {
|
3226 |
$attachments = get_children(array(
|
3227 |
'post_parent' => $id ,
|
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, $wp32, $wp33, $wp34;
|
31 |
var $inline_js;
|
32 |
|
33 |
var $jquery_js = 'includes/js/jquery-1.4.2.min.js';
|
@@ -52,6 +52,7 @@ class wokController {
|
|
52 |
$this->wp32 = version_compare($wp_version, "3.2", ">=");
|
53 |
$this->wp33 = version_compare($wp_version, "3.3", ">=");
|
54 |
$this->wp34 = version_compare($wp_version, "3.4", ">=");
|
|
|
55 |
|
56 |
$this->setPluginDir($file);
|
57 |
$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, $wp33, $wp34, $wp44;
|
31 |
var $inline_js;
|
32 |
|
33 |
var $jquery_js = 'includes/js/jquery-1.4.2.min.js';
|
52 |
$this->wp32 = version_compare($wp_version, "3.2", ">=");
|
53 |
$this->wp33 = version_compare($wp_version, "3.3", ">=");
|
54 |
$this->wp34 = version_compare($wp_version, "3.4", ">=");
|
55 |
+
$this->wp44 = version_compare($wp_version, "4.4", ">=");
|
56 |
|
57 |
$this->setPluginDir($file);
|
58 |
$this->loadTextdomain();
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: wokamoto, megumithemes, Webnist, tai
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJCY7XB8F4&lc=JP&item_name=WordPress%20Plugins&item_number=wp%2dplugins¤cy_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:
|
7 |
-
Stable tag: 1.4.
|
8 |
|
9 |
Cleaning tags from your WordPress header and footer.
|
10 |
|
@@ -94,6 +94,10 @@ Head Cleaner Ver.1.1.5 includes 'php_browscap.ini' .
|
|
94 |
|
95 |
== Changelog ==
|
96 |
|
|
|
|
|
|
|
|
|
97 |
**1.4.2.12 - August 29, 2014**
|
98 |
Minor bug fix.
|
99 |
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJCY7XB8F4&lc=JP&item_name=WordPress%20Plugins&item_number=wp%2dplugins¤cy_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: 4.4
|
7 |
+
Stable tag: 1.4.3
|
8 |
|
9 |
Cleaning tags from your WordPress header and footer.
|
10 |
|
94 |
|
95 |
== Changelog ==
|
96 |
|
97 |
+
**1.4.3 - December 22, 2015**
|
98 |
+
Support WordPress 4.4.
|
99 |
+
Thx [msng](http://www.msng.info/)
|
100 |
+
|
101 |
**1.4.2.12 - August 29, 2014**
|
102 |
Minor bug fix.
|
103 |
|