Version Description
Download this release
Release Info
Developer | jim912 |
Plugin | ![]() |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
- ps_disable_auto_formatting.php +13 -11
- readme.txt +3 -1
ps_disable_auto_formatting.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: PS Disable Auto Formatting
|
4 |
Plugin URI: http://www.web-strategy.jp/wp_plugin/ps_disable_auto_formatting/
|
5 |
Description: PS Disable Auto Formatting is able to disable function auto formatting (wpautop) and save <p> and <br /> formatted content.
|
6 |
-
Version: 1.0.
|
7 |
Author: Hitoshi Omagari
|
8 |
Author URI: http://www.web-strategy.jp/
|
9 |
*/
|
@@ -164,7 +164,7 @@ function output_disable_formatting_setting_page() {
|
|
164 |
if( isset( $_POST['_wpnonce'] ) && $_POST['_wpnonce'] ) {
|
165 |
check_admin_referer();
|
166 |
|
167 |
-
if ( $_POST['batch_formatting'] ) {
|
168 |
if ( $_POST['allow_batch_formatting'] ) {
|
169 |
$time_limit = sprintf( '%04d-%02d-%02d %02d:%02d:00', $_POST['aa'], $_POST['mm'], $_POST['jj'], $_POST['hh'], $_POST['mn'] );
|
170 |
$sql = "
|
@@ -211,17 +211,19 @@ AND `post_modified` < '$time_limit'
|
|
211 |
}
|
212 |
} else {
|
213 |
if ( isset( $_POST['ps_disable_auto_formatting'] ) ) {
|
214 |
-
$post_data =
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
if ( $ret ) {
|
222 |
-
$this->option_settings = get_option( 'ps_disable_auto_formatting' );
|
223 |
}
|
224 |
}
|
|
|
|
|
|
|
|
|
225 |
}
|
226 |
}
|
227 |
|
3 |
Plugin Name: PS Disable Auto Formatting
|
4 |
Plugin URI: http://www.web-strategy.jp/wp_plugin/ps_disable_auto_formatting/
|
5 |
Description: PS Disable Auto Formatting is able to disable function auto formatting (wpautop) and save <p> and <br /> formatted content.
|
6 |
+
Version: 1.0.5
|
7 |
Author: Hitoshi Omagari
|
8 |
Author URI: http://www.web-strategy.jp/
|
9 |
*/
|
164 |
if( isset( $_POST['_wpnonce'] ) && $_POST['_wpnonce'] ) {
|
165 |
check_admin_referer();
|
166 |
|
167 |
+
if ( isset( $_POST['batch_formatting'] ) && $_POST['batch_formatting'] ) {
|
168 |
if ( $_POST['allow_batch_formatting'] ) {
|
169 |
$time_limit = sprintf( '%04d-%02d-%02d %02d:%02d:00', $_POST['aa'], $_POST['mm'], $_POST['jj'], $_POST['hh'], $_POST['mn'] );
|
170 |
$sql = "
|
211 |
}
|
212 |
} else {
|
213 |
if ( isset( $_POST['ps_disable_auto_formatting'] ) ) {
|
214 |
+
$post_data = stripslashes_deep( $_POST['ps_disable_auto_formatting'] );
|
215 |
+
} else {
|
216 |
+
$post_data = array();
|
217 |
+
}
|
218 |
+
foreach ( $post_data as $key => $func ) {
|
219 |
+
if ( ! in_array( $func, $this->setting_items) ) {
|
220 |
+
unset( $_POST['ps_disable_auto_formatting'][$key] );
|
|
|
|
|
221 |
}
|
222 |
}
|
223 |
+
$ret = update_option( 'ps_disable_auto_formatting', $post_data );
|
224 |
+
if ( $ret ) {
|
225 |
+
$this->option_settings = get_option( 'ps_disable_auto_formatting' );
|
226 |
+
}
|
227 |
}
|
228 |
}
|
229 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: jim912
|
|
3 |
Tags: auto formatting, formatting, format, paragraph, linebreak, wpautop
|
4 |
Requires at least: 2.5
|
5 |
Tested up to: 3.1
|
6 |
-
Stable tag: 1.0.
|
7 |
|
8 |
Stops the automatic forming and the HTML tag removal in the html mode of WordPress, and generates a natural paragraph and changing line.
|
9 |
|
@@ -65,6 +65,8 @@ To prevent the operational error, the batch processing is not done if there is n
|
|
65 |
Please check "Permit batch formatting" check box.
|
66 |
|
67 |
== Changelog ==
|
|
|
|
|
68 |
* **1.0.4**
|
69 |
* fix : Fixed Warning and Notice Error.
|
70 |
* **1.0.3**
|
3 |
Tags: auto formatting, formatting, format, paragraph, linebreak, wpautop
|
4 |
Requires at least: 2.5
|
5 |
Tested up to: 3.1
|
6 |
+
Stable tag: 1.0.5
|
7 |
|
8 |
Stops the automatic forming and the HTML tag removal in the html mode of WordPress, and generates a natural paragraph and changing line.
|
9 |
|
65 |
Please check "Permit batch formatting" check box.
|
66 |
|
67 |
== Changelog ==
|
68 |
+
* **1.0.5**
|
69 |
+
* fix : bug fix
|
70 |
* **1.0.4**
|
71 |
* fix : Fixed Warning and Notice Error.
|
72 |
* **1.0.3**
|