Shortcoder - Version 5.0.3

Version Description

  • Fix: Shortcode content is not escaped when code editor is used. This is requirement because post_content behaves strangely when user has rich editing enabled.
Download this release

Release Info

Developer vaakash
Plugin Icon 128x128 Shortcoder
Version 5.0.3
Comparing to
See all releases

Code changes from version 5.0.2 to 5.0.3

Files changed (3) hide show
  1. admin/edit.php +2 -1
  2. readme.txt +4 -1
  3. shortcoder.php +2 -2
admin/edit.php CHANGED
@@ -188,7 +188,8 @@ class SC_Admin_Edit{
188
 
189
  if( $editor[ 'active' ] == 'code' ){
190
  echo '<div class="sc_cm_menu"></div>';
191
- echo '<textarea name="content" id="content" class="sc_cm_content">' . $post->post_content . '</textarea>';
 
192
  }else{
193
  wp_editor( $post->post_content, 'content', array(
194
  'wpautop'=> false,
188
 
189
  if( $editor[ 'active' ] == 'code' ){
190
  echo '<div class="sc_cm_menu"></div>';
191
+ $content = user_can_richedit() ? esc_textarea( $post->post_content ) : $post->post_content;
192
+ echo '<textarea name="content" id="content" class="sc_cm_content">' . $content . '</textarea>';
193
  }else{
194
  wp_editor( $post->post_content, 'content', array(
195
  'wpautop'=> false,
readme.txt CHANGED
@@ -8,7 +8,7 @@ License: GPLv2 or later
8
  Requires PHP: 5.3
9
  Requires at least: 4.4
10
  Tested up to: 5.3.2
11
- Stable tag: 5.0.2
12
 
13
  Create custom "Shortcodes" easily for HTML, JavaScript snippets and use the shortcodes within posts, pages & widgets.
14
 
@@ -88,6 +88,9 @@ Please check the following if you notice that the shortcode content is not print
88
 
89
  == Changelog ==
90
 
 
 
 
91
  = 5.0.2 =
92
  * Fix: Shortcodes inside shortcode content not getting executed.
93
  * Fix: Disable Gutenberg block for older not supported WordPress versions.
8
  Requires PHP: 5.3
9
  Requires at least: 4.4
10
  Tested up to: 5.3.2
11
+ Stable tag: 5.0.3
12
 
13
  Create custom "Shortcodes" easily for HTML, JavaScript snippets and use the shortcodes within posts, pages & widgets.
14
 
88
 
89
  == Changelog ==
90
 
91
+ = 5.0.3 =
92
+ * Fix: Shortcode content is not escaped when code editor is used. This is requirement because `post_content` behaves strangely when user has rich editing enabled.
93
+
94
  = 5.0.2 =
95
  * Fix: Shortcodes inside shortcode content not getting executed.
96
  * Fix: Disable Gutenberg block for older not supported WordPress versions.
shortcoder.php CHANGED
@@ -4,11 +4,11 @@ Plugin Name: Shortcoder
4
  Plugin URI: https://www.aakashweb.com/wordpress-plugins/shortcoder/
5
  Description: Shortcoder plugin allows to create a custom shortcodes for HTML, JavaScript and other snippets. Now the shortcodes can be used in posts/pages and the snippet will be replaced in place.
6
  Author: Aakash Chakravarthy
7
- Version: 5.0.2
8
  Author URI: https://www.aakashweb.com/
9
  */
10
 
11
- define( 'SC_VERSION', '5.0.2' );
12
  define( 'SC_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
13
  define( 'SC_URL', plugin_dir_url( __FILE__ ) );
14
  define( 'SC_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );
4
  Plugin URI: https://www.aakashweb.com/wordpress-plugins/shortcoder/
5
  Description: Shortcoder plugin allows to create a custom shortcodes for HTML, JavaScript and other snippets. Now the shortcodes can be used in posts/pages and the snippet will be replaced in place.
6
  Author: Aakash Chakravarthy
7
+ Version: 5.0.3
8
  Author URI: https://www.aakashweb.com/
9
  */
10
 
11
+ define( 'SC_VERSION', '5.0.3' );
12
  define( 'SC_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
13
  define( 'SC_URL', plugin_dir_url( __FILE__ ) );
14
  define( 'SC_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );