Version Description
- fix for wordpress 3.5
- remove "disable auto_save" function.
- remove "remove atachement link" function.
Download this release
Release Info
Developer | miyauchi |
Plugin | WP Total Hacks |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.1.0
- includes/form/appearance.php +1 -1
- includes/form/post.php +0 -16
- readme.txt +8 -3
- uninstall.php +50 -0
- wp-total-hacks.php +3 -19
includes/form/appearance.php
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
<p><img class="caption" alt="" src="<?php echo $this->get_plugin_url(); ?>/img/admin_footer_text.png"></p>
|
20 |
<div class="poststuff">
|
21 |
<div class="postdivrich" class="postarea">
|
22 |
-
<?php
|
23 |
</div><!--end #postdivrich-->
|
24 |
</div><!--end #poststuff-->
|
25 |
</div>
|
19 |
<p><img class="caption" alt="" src="<?php echo $this->get_plugin_url(); ?>/img/admin_footer_text.png"></p>
|
20 |
<div class="poststuff">
|
21 |
<div class="postdivrich" class="postarea">
|
22 |
+
<?php wp_editor($this->op('wfb_admin_footer_text', false), "wfb_admin_footer_text"); ?>
|
23 |
</div><!--end #postdivrich-->
|
24 |
</div><!--end #poststuff-->
|
25 |
</div>
|
includes/form/post.php
CHANGED
@@ -60,13 +60,6 @@
|
|
60 |
</div>
|
61 |
</div>
|
62 |
|
63 |
-
<div class="block">
|
64 |
-
<h4><img src="<?php echo $this->get_plugin_url(); ?>/img/check.png" height="24" width="24" /><?php _e('Disable Auto Save', 'wp-total-hacks'); ?></h4>
|
65 |
-
<div class="block_content">
|
66 |
-
<?php $this->sel('wfb_autosave'); ?>
|
67 |
-
</div>
|
68 |
-
</div>
|
69 |
-
|
70 |
<div class="block">
|
71 |
<h4><img src="<?php echo $this->get_plugin_url(); ?>/img/check.png" height="24" width="24" /><?php _e('Stop self-pingbacks', 'wp-total-hacks'); ?></h4>
|
72 |
<div class="block_content">
|
@@ -83,15 +76,6 @@
|
|
83 |
</div>
|
84 |
</div>
|
85 |
|
86 |
-
<div class="block">
|
87 |
-
<h4><img src="<?php echo $this->get_plugin_url(); ?>/img/check.png" height="24" width="24" /><?php _e('Remove attachment link from media uploader.', 'wp-total-hacks'); ?></h4>
|
88 |
-
<div class="block_content">
|
89 |
-
<p><?php _e('Allows you to remove link for attachment page from media uploader.', 'wp-total-hacks'); ?></p>
|
90 |
-
<p><img class="caption" alt="" src="<?php echo $this->get_plugin_url(); ?>/img/remove_attachment_link.png" style="max-width:80%;height:auto;"></p>
|
91 |
-
<?php $this->sel('wfb_attachmentlink'); ?>
|
92 |
-
</div>
|
93 |
-
</div>
|
94 |
-
|
95 |
<div class="block">
|
96 |
<h4><img src="<?php echo $this->get_plugin_url(); ?>/img/check.png" height="24" width="24" /><?php _e('Allow you to create chid page for "draft".', 'wp-total-hacks'); ?></h4>
|
97 |
<div class="block_content">
|
60 |
</div>
|
61 |
</div>
|
62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
<div class="block">
|
64 |
<h4><img src="<?php echo $this->get_plugin_url(); ?>/img/check.png" height="24" width="24" /><?php _e('Stop self-pingbacks', 'wp-total-hacks'); ?></h4>
|
65 |
<div class="block_content">
|
76 |
</div>
|
77 |
</div>
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
<div class="block">
|
80 |
<h4><img src="<?php echo $this->get_plugin_url(); ?>/img/check.png" height="24" width="24" /><?php _e('Allow you to create chid page for "draft".', 'wp-total-hacks'); ?></h4>
|
81 |
<div class="block_content">
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: miyauchi
|
3 |
Donate link: http://wpist.me/
|
4 |
Tags: head, post, page, functions.php, admin, logo, auto save, revision, meta box, dashboard
|
5 |
-
Requires at least: 3.
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 1.0
|
8 |
|
9 |
WP Total Hacks can customize more than 20 settings on your WordPress Site.
|
10 |
PHP5 is required!
|
@@ -88,6 +88,11 @@ Please contact to me.
|
|
88 |
|
89 |
== Changelog ==
|
90 |
|
|
|
|
|
|
|
|
|
|
|
91 |
= 1.0.1 =
|
92 |
* Allow you to remove attachment page.
|
93 |
* Allow you to create child page for "Draft".
|
2 |
Contributors: miyauchi
|
3 |
Donate link: http://wpist.me/
|
4 |
Tags: head, post, page, functions.php, admin, logo, auto save, revision, meta box, dashboard
|
5 |
+
Requires at least: 3.5
|
6 |
+
Tested up to: 3.5
|
7 |
+
Stable tag: 1.1.0
|
8 |
|
9 |
WP Total Hacks can customize more than 20 settings on your WordPress Site.
|
10 |
PHP5 is required!
|
88 |
|
89 |
== Changelog ==
|
90 |
|
91 |
+
= 1.1.0 =
|
92 |
+
* fix for wordpress 3.5
|
93 |
+
* remove "disable auto_save" function.
|
94 |
+
* remove "remove atachement link" function.
|
95 |
+
|
96 |
= 1.0.1 =
|
97 |
* Allow you to remove attachment page.
|
98 |
* Allow you to create child page for "Draft".
|
uninstall.php
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
//if uninstall not called from WordPress exit
|
4 |
+
if (!defined('WP_UNINSTALL_PLUGIN')) {
|
5 |
+
exit;
|
6 |
+
}
|
7 |
+
|
8 |
+
|
9 |
+
$total_hacks_options = array(
|
10 |
+
'wfb_google_analytics',
|
11 |
+
'wfb_favicon',
|
12 |
+
'wfb_admin_favicon',
|
13 |
+
'wfb_apple_icon',
|
14 |
+
'wfb_apple_icon_precomposed',
|
15 |
+
'wfb_hide_version',
|
16 |
+
'wfb_google',
|
17 |
+
'wfb_yahoo',
|
18 |
+
'wfb_bing',
|
19 |
+
'wfb_hide_custom_fields',
|
20 |
+
'wfb_revision',
|
21 |
+
'wfb_autosave',
|
22 |
+
'wfb_selfping',
|
23 |
+
'wfb_widget',
|
24 |
+
'wfb_custom_logo',
|
25 |
+
'wfb_admin_footer_text',
|
26 |
+
'wfb_login_logo',
|
27 |
+
'wfb_login_url',
|
28 |
+
'wfb_login_title',
|
29 |
+
'wfb_webmaster',
|
30 |
+
'wfb_remove_xmlrpc',
|
31 |
+
'wfb_exclude_loggedin',
|
32 |
+
'wfb_adjacent_posts_rel_links',
|
33 |
+
'wfb_remove_more',
|
34 |
+
'wfb_pageexcerpt',
|
35 |
+
'wfb_postmetas',
|
36 |
+
'wfb_pagemetas',
|
37 |
+
'wfb_emailaddress',
|
38 |
+
'wfb_sendername',
|
39 |
+
'wfb_contact_methods',
|
40 |
+
'wfb_remove_excerpt',
|
41 |
+
'wfb_update_notification',
|
42 |
+
'wfb_attachmentlink',
|
43 |
+
'wfb_createpagefordraft',
|
44 |
+
);
|
45 |
+
|
46 |
+
|
47 |
+
foreach ($total_hacks_options as $op) {
|
48 |
+
delete_option($op);
|
49 |
+
}
|
50 |
+
|
wp-total-hacks.php
CHANGED
@@ -5,7 +5,7 @@ Author: Takayuki Miyauchi
|
|
5 |
Plugin URI: http://wpist.me/wp/wp-total-hacks/
|
6 |
Description: WP Total Hacks can customize your WordPress.
|
7 |
Author: Takayuki Miyauchi
|
8 |
-
Version: 1.0
|
9 |
Author URI: http://wpist.me/
|
10 |
Domain Path: /languages
|
11 |
Text Domain: wp-total-hacks
|
@@ -28,7 +28,7 @@ private $option_params = array(
|
|
28 |
'wfb_bing' => 'text',
|
29 |
'wfb_hide_custom_fields' => 'bool',
|
30 |
'wfb_revision' => 'int',
|
31 |
-
'wfb_autosave' => 'bool',
|
32 |
'wfb_selfping' => 'bool',
|
33 |
'wfb_widget' => 'array',
|
34 |
'wfb_custom_logo' => 'url',
|
@@ -49,7 +49,7 @@ private $option_params = array(
|
|
49 |
'wfb_contact_methods' => 'array',
|
50 |
'wfb_remove_excerpt' => 'bool',
|
51 |
'wfb_update_notification' => 'bool',
|
52 |
-
'wfb_attachmentlink' => 'bool',
|
53 |
'wfb_createpagefordraft' => 'bool',
|
54 |
);
|
55 |
|
@@ -80,13 +80,11 @@ public function __construct()
|
|
80 |
add_action('pre_ping', array(&$this, 'pre_ping'));
|
81 |
add_action('wp_dashboard_setup',array(&$this, 'wp_dashboard_setup'));
|
82 |
add_filter('the_content_more_link', array(&$this, 'the_content_more_link'));
|
83 |
-
add_action('wp_print_scripts', array(&$this, 'wp_print_scripts'));
|
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_action('admin_print_styles', array(&$this, 'admin_print_styles'));
|
90 |
add_filter('page_attributes_dropdown_pages_args', array(&$this, 'page_attributes_dropdown_pages_args'));
|
91 |
add_action('save_post', array(&$this, 'save_post'));
|
92 |
}
|
@@ -127,13 +125,6 @@ public function page_attributes_dropdown_pages_args($args)
|
|
127 |
return $args;
|
128 |
}
|
129 |
|
130 |
-
public function admin_print_styles()
|
131 |
-
{
|
132 |
-
if ($this->op('wfb_attachmentlink')) {
|
133 |
-
echo '<style type="text/css">button.urlpost{display:none;}</style>';
|
134 |
-
}
|
135 |
-
}
|
136 |
-
|
137 |
public function plugins_loaded()
|
138 |
{
|
139 |
load_plugin_textdomain(
|
@@ -191,13 +182,6 @@ public function init()
|
|
191 |
}
|
192 |
}
|
193 |
|
194 |
-
public function wp_print_scripts()
|
195 |
-
{
|
196 |
-
if (strlen($this->op('wfb_autosave'))) {
|
197 |
-
wp_deregister_script('autosave');
|
198 |
-
}
|
199 |
-
}
|
200 |
-
|
201 |
public function the_content_more_link($str)
|
202 |
{
|
203 |
if ($this->op('wfb_remove_more')) {
|
5 |
Plugin URI: http://wpist.me/wp/wp-total-hacks/
|
6 |
Description: WP Total Hacks can customize your WordPress.
|
7 |
Author: Takayuki Miyauchi
|
8 |
+
Version: 1.1.0
|
9 |
Author URI: http://wpist.me/
|
10 |
Domain Path: /languages
|
11 |
Text Domain: wp-total-hacks
|
28 |
'wfb_bing' => 'text',
|
29 |
'wfb_hide_custom_fields' => 'bool',
|
30 |
'wfb_revision' => 'int',
|
31 |
+
//'wfb_autosave' => 'bool',
|
32 |
'wfb_selfping' => 'bool',
|
33 |
'wfb_widget' => 'array',
|
34 |
'wfb_custom_logo' => 'url',
|
49 |
'wfb_contact_methods' => 'array',
|
50 |
'wfb_remove_excerpt' => 'bool',
|
51 |
'wfb_update_notification' => 'bool',
|
52 |
+
//'wfb_attachmentlink' => 'bool',
|
53 |
'wfb_createpagefordraft' => 'bool',
|
54 |
);
|
55 |
|
80 |
add_action('pre_ping', array(&$this, 'pre_ping'));
|
81 |
add_action('wp_dashboard_setup',array(&$this, 'wp_dashboard_setup'));
|
82 |
add_filter('the_content_more_link', array(&$this, 'the_content_more_link'));
|
|
|
83 |
add_filter('wp_mail_from', array(&$this, 'wp_mail_from'));
|
84 |
add_filter('wp_mail_from_name', array(&$this, 'wp_mail_from_name'));
|
85 |
add_filter('plugin_row_meta', array(&$this, 'plugin_row_meta'), 10, 2);
|
86 |
add_filter('user_contactmethods', array(&$this, 'user_contactmethods'));
|
87 |
add_filter('excerpt_more', array(&$this, 'excerpt_more'));
|
|
|
88 |
add_filter('page_attributes_dropdown_pages_args', array(&$this, 'page_attributes_dropdown_pages_args'));
|
89 |
add_action('save_post', array(&$this, 'save_post'));
|
90 |
}
|
125 |
return $args;
|
126 |
}
|
127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
public function plugins_loaded()
|
129 |
{
|
130 |
load_plugin_textdomain(
|
182 |
}
|
183 |
}
|
184 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
public function the_content_more_link($str)
|
186 |
{
|
187 |
if ($this->op('wfb_remove_more')) {
|