Version Description
Download this release
Release Info
Developer | miyauchi |
Plugin | WP Total Hacks |
Version | 1.9.1 |
Comparing to | |
See all releases |
Code changes from version 1.9.0 to 1.9.1
- .svnignore +6 -0
- img/admin_footer_text.png +0 -0
- img/admin_header_logo.png +0 -0
- img/login_logo.png +0 -0
- readme.txt +3 -3
- wp-total-hacks.php +2 -21
.svnignore
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.git
|
2 |
+
.gitignore
|
3 |
+
.travis.yml
|
4 |
+
bin
|
5 |
+
phpunit.xml
|
6 |
+
tests
|
img/admin_footer_text.png
CHANGED
Binary file
|
img/admin_header_logo.png
CHANGED
Binary file
|
img/login_logo.png
CHANGED
Binary file
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: miyauchi,marushu
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FR7RD5SGEU69Y
|
4 |
Tags: head, post, page, functions.php, admin, logo, auto save, revision, meta box, dashboard
|
5 |
-
Requires at least: 3.
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.9.
|
8 |
|
9 |
WP Total Hacks can customize more than 20 settings on your WordPress Site.
|
10 |
PHP5 is required!
|
2 |
Contributors: miyauchi,marushu
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FR7RD5SGEU69Y
|
4 |
Tags: head, post, page, functions.php, admin, logo, auto save, revision, meta box, dashboard
|
5 |
+
Requires at least: 3.8
|
6 |
+
Tested up to: 4.1
|
7 |
+
Stable tag: 1.9.1
|
8 |
|
9 |
WP Total Hacks can customize more than 20 settings on your WordPress Site.
|
10 |
PHP5 is required!
|
wp-total-hacks.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Total Hacks
|
|
4 |
Author: Takayuki Miyauchi
|
5 |
Plugin URI: https://github.com/miya0001/wp-total-hacks
|
6 |
Description: WP Total Hacks can customize your WordPress.
|
7 |
-
Version: 1.9.
|
8 |
Author URI: http://wpist.me/
|
9 |
Domain Path: /languages
|
10 |
Text Domain: wp-total-hacks
|
@@ -26,7 +26,6 @@ private $option_params = array(
|
|
26 |
'wfb_bing' => 'text',
|
27 |
'wfb_hide_custom_fields' => 'bool',
|
28 |
'wfb_revision' => 'int',
|
29 |
-
//'wfb_autosave' => 'bool',
|
30 |
'wfb_selfping' => 'bool',
|
31 |
'wfb_widget' => 'array',
|
32 |
'wfb_custom_logo' => 'url',
|
@@ -47,7 +46,6 @@ private $option_params = array(
|
|
47 |
'wfb_contact_methods' => 'array',
|
48 |
'wfb_remove_excerpt' => 'bool',
|
49 |
'wfb_update_notification' => 'bool',
|
50 |
-
//'wfb_attachmentlink' => 'bool',
|
51 |
'wfb_createpagefordraft' => 'bool',
|
52 |
'wfb_disallow_pingback' => 'bool',
|
53 |
'wfb_shortcode' => 'bool',
|
@@ -83,7 +81,6 @@ public function __construct()
|
|
83 |
add_filter('the_content_more_link', array(&$this, 'the_content_more_link'));
|
84 |
add_filter('wp_mail_from', array(&$this, 'wp_mail_from'));
|
85 |
add_filter('wp_mail_from_name', array(&$this, 'wp_mail_from_name'));
|
86 |
-
add_filter('plugin_row_meta', array(&$this, 'plugin_row_meta'), 10, 2);
|
87 |
add_filter('user_contactmethods', array(&$this, 'user_contactmethods'));
|
88 |
add_filter('excerpt_more', array(&$this, 'excerpt_more'));
|
89 |
add_filter('page_attributes_dropdown_pages_args', array(&$this, 'page_attributes_dropdown_pages_args'));
|
@@ -283,7 +280,7 @@ public function wp_head()
|
|
283 |
if ($this->op("wfb_google_analytics")) {
|
284 |
if ($this->op("wfb_exclude_loggedin") && is_user_logged_in()) {
|
285 |
} else {
|
286 |
-
echo stripslashes($this->op("wfb_google_analytics"));
|
287 |
}
|
288 |
}
|
289 |
if ($this->op('wfb_favicon')) {
|
@@ -391,22 +388,6 @@ private function op($key, $default = false)
|
|
391 |
}
|
392 |
}
|
393 |
|
394 |
-
public function plugin_row_meta($links, $file)
|
395 |
-
{
|
396 |
-
$pname = plugin_basename(__FILE__);
|
397 |
-
if ($pname === $file) {
|
398 |
-
$link = '<a href="%s">%s</a>';
|
399 |
-
$links[] = sprintf(
|
400 |
-
$link,
|
401 |
-
admin_url('options-general.php?page=wp-total-hacks'),
|
402 |
-
__("Settings", "wp-total-hacks")
|
403 |
-
);
|
404 |
-
$url = "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8NDYFAG2ZM9TU";
|
405 |
-
$links[] = sprintf($link, esc_url($url), __("Donate", "wp-total-hacks"));
|
406 |
-
}
|
407 |
-
return $links;
|
408 |
-
}
|
409 |
-
|
410 |
private function remove_scheme($url)
|
411 |
{
|
412 |
return preg_replace("/^http:/", "", $url);
|
4 |
Author: Takayuki Miyauchi
|
5 |
Plugin URI: https://github.com/miya0001/wp-total-hacks
|
6 |
Description: WP Total Hacks can customize your WordPress.
|
7 |
+
Version: 1.9.1
|
8 |
Author URI: http://wpist.me/
|
9 |
Domain Path: /languages
|
10 |
Text Domain: wp-total-hacks
|
26 |
'wfb_bing' => 'text',
|
27 |
'wfb_hide_custom_fields' => 'bool',
|
28 |
'wfb_revision' => 'int',
|
|
|
29 |
'wfb_selfping' => 'bool',
|
30 |
'wfb_widget' => 'array',
|
31 |
'wfb_custom_logo' => 'url',
|
46 |
'wfb_contact_methods' => 'array',
|
47 |
'wfb_remove_excerpt' => 'bool',
|
48 |
'wfb_update_notification' => 'bool',
|
|
|
49 |
'wfb_createpagefordraft' => 'bool',
|
50 |
'wfb_disallow_pingback' => 'bool',
|
51 |
'wfb_shortcode' => 'bool',
|
81 |
add_filter('the_content_more_link', array(&$this, 'the_content_more_link'));
|
82 |
add_filter('wp_mail_from', array(&$this, 'wp_mail_from'));
|
83 |
add_filter('wp_mail_from_name', array(&$this, 'wp_mail_from_name'));
|
|
|
84 |
add_filter('user_contactmethods', array(&$this, 'user_contactmethods'));
|
85 |
add_filter('excerpt_more', array(&$this, 'excerpt_more'));
|
86 |
add_filter('page_attributes_dropdown_pages_args', array(&$this, 'page_attributes_dropdown_pages_args'));
|
280 |
if ($this->op("wfb_google_analytics")) {
|
281 |
if ($this->op("wfb_exclude_loggedin") && is_user_logged_in()) {
|
282 |
} else {
|
283 |
+
echo apply_filters( "wp_total_hacks_google_analytics", stripslashes( $this->op( "wfb_google_analytics" ) ) );
|
284 |
}
|
285 |
}
|
286 |
if ($this->op('wfb_favicon')) {
|
388 |
}
|
389 |
}
|
390 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
391 |
private function remove_scheme($url)
|
392 |
{
|
393 |
return preg_replace("/^http:/", "", $url);
|