PS Disable Auto Formatting - Version 1.0.8

Version Description

Download this release

Release Info

Developer jim912
Plugin Icon wp plugin PS Disable Auto Formatting
Version 1.0.8
Comparing to
See all releases

Code changes from version 1.0.7 to 1.0.8

Files changed (2) hide show
  1. ps_disable_auto_formatting.php +2 -2
  2. 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
7
  Author: Hitoshi Omagari
8
  Author URI: http://www.web-strategy.jp/
9
  License: GPLv2 or later
@@ -91,7 +91,7 @@ function set_default_settings() {
91
  function rewrite_default_script( $todo ) {
92
  global $wp_version, $wp_scripts;
93
 
94
- if ( version_compare( $wp_version, '3.2', '>' ) ) {
95
  $scripyt_src = get_option( 'siteurl' ) . '/' . str_replace( str_replace( '\\', '/', ABSPATH ), '', str_replace( '\\', '/', dirname( __file__ ) ) ) . '/js/330/ps_editor.js';
96
  } elseif ( version_compare( $wp_version, '2.8', '>=' ) ) {
97
  $scripyt_src = get_option( 'siteurl' ) . '/' . str_replace( str_replace( '\\', '/', ABSPATH ), '', str_replace( '\\', '/', dirname( __file__ ) ) ) . '/js/280/ps_editor.js';
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.8
7
  Author: Hitoshi Omagari
8
  Author URI: http://www.web-strategy.jp/
9
  License: GPLv2 or later
91
  function rewrite_default_script( $todo ) {
92
  global $wp_version, $wp_scripts;
93
 
94
+ if ( version_compare( $wp_version, '3.3.x', '>' ) ) {
95
  $scripyt_src = get_option( 'siteurl' ) . '/' . str_replace( str_replace( '\\', '/', ABSPATH ), '', str_replace( '\\', '/', dirname( __file__ ) ) ) . '/js/330/ps_editor.js';
96
  } elseif ( version_compare( $wp_version, '2.8', '>=' ) ) {
97
  $scripyt_src = get_option( 'siteurl' ) . '/' . str_replace( str_replace( '\\', '/', ABSPATH ), '', str_replace( '\\', '/', dirname( __file__ ) ) ) . '/js/280/ps_editor.js';
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.3
6
- Stable tag: 1.0.7
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.7**
69
  * Compatible with WordPress 3.3
70
  * **1.0.6**
3
  Tags: auto formatting, formatting, format, paragraph, linebreak, wpautop
4
  Requires at least: 2.5
5
  Tested up to: 3.3
6
+ Stable tag: 1.0.8
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.8**
69
+ * fix : bug fix : load javascript file for 3.3 in 3.2.1
70
  * **1.0.7**
71
  * Compatible with WordPress 3.3
72
  * **1.0.6**