Shortcoder - Version 5.3.4

Version Description

Download this release

Release Info

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

Code changes from version 5.3.3 to 5.3.4

Files changed (5) hide show
  1. admin/edit.php +1 -1
  2. admin/insert.php +1 -1
  3. includes/metadata.php +6 -1
  4. readme.txt +6 -2
  5. shortcoder.php +2 -2
admin/edit.php CHANGED
@@ -313,7 +313,7 @@ class SC_Admin_Edit{
313
  </ul>
314
  ';
315
 
316
- echo '<div class="ufw"><h4><a href="https://www.aakashweb.com/wordpress-plugins/ultimate-floating-widgets/?utm_source=shortcoder&utm_medium=sidebar&utm_campaign=ufw" target="_blank">
317
  <i>Create <span class="dashicons dashicons-arrow-right-alt2"></span></i>
318
  <br/> Floating/sticky widgets</a></h4>
319
  <img src="' . SC_ADMIN_URL . 'images/ufw.png" class="balloon" />
313
  </ul>
314
  ';
315
 
316
+ echo '<div class="ufw"><h4><a href="https://www.aakashweb.com/wordpress-plugins/ultimate-floating-widgets-pro/?utm_source=shortcoder&utm_medium=sidebar&utm_campaign=ufw-pro" target="_blank">
317
  <i>Create <span class="dashicons dashicons-arrow-right-alt2"></span></i>
318
  <br/> Floating/sticky widgets</a></h4>
319
  <img src="' . SC_ADMIN_URL . 'images/ufw.png" class="balloon" />
admin/insert.php CHANGED
@@ -12,7 +12,7 @@
12
 
13
  <div class="sc_menu">
14
  <input type="search" class="sc_search" placeholder="Search ..." />
15
- <a href="https://www.aakashweb.com/wordpress-plugins/ultimate-floating-widgets/" target="_blank" class="ufw"><i>Check out</i> : Ultimate floating widgets<span>A WordPress plugin to create floating widgets.</span></a>
16
  </div>
17
 
18
  <div class="sc_list">
12
 
13
  <div class="sc_menu">
14
  <input type="search" class="sc_search" placeholder="Search ..." />
15
+ <a href="https://www.aakashweb.com/wordpress-plugins/ultimate-floating-widgets-pro/" target="_blank" class="ufw"><i>Check out</i> : Ultimate floating widgets<span>A WordPress plugin to create floating widgets.</span></a>
16
  </div>
17
 
18
  <div class="sc_list">
includes/metadata.php CHANGED
@@ -151,7 +151,12 @@ class Shortcoder_Metadata{
151
  }
152
 
153
  $meta = wp_parse_args( $d, $defaults );
154
- $meta = array_map( 'trim', $meta );
 
 
 
 
 
155
  $meta = apply_filters( 'sc_mod_metadata', $meta );
156
 
157
  return $meta;
151
  }
152
 
153
  $meta = wp_parse_args( $d, $defaults );
154
+ foreach( $meta as $key => $val ){
155
+ if( is_string( $val ) ){
156
+ $val = trim( $val );
157
+ }
158
+ $meta[ $key ] = $val;
159
+ }
160
  $meta = apply_filters( 'sc_mod_metadata', $meta );
161
 
162
  return $meta;
readme.txt CHANGED
@@ -7,8 +7,8 @@ Donate link: https://www.paypal.me/vaakash/
7
  License: GPLv2 or later
8
  Requires PHP: 5.3
9
  Requires at least: 4.4
10
- Tested up to: 5.5.3
11
- Stable tag: 5.3.3
12
 
13
  Create custom "Shortcodes" easily for HTML, JavaScript snippets and use the shortcodes within posts, pages & widgets.
14
 
@@ -106,6 +106,10 @@ No, right now the plugin supports only HTML, Javascript and CSS as shortcode con
106
 
107
  ## Changelog
108
 
 
 
 
 
109
  ### 5.3.3
110
  * New: Support for `post slug` as the new shortcode parameter under WordPress information.
111
  * New: Codemirror has been updated to latest version.
7
  License: GPLv2 or later
8
  Requires PHP: 5.3
9
  Requires at least: 4.4
10
+ Tested up to: 5.6
11
+ Stable tag: 5.3.4
12
 
13
  Create custom "Shortcodes" easily for HTML, JavaScript snippets and use the shortcodes within posts, pages & widgets.
14
 
106
 
107
  ## Changelog
108
 
109
+ ### 5.3.4
110
+ * New: Tested with WordPress 5.6
111
+ * Fix: Handle warning with `trim` while fetching page metadata at some pages.
112
+
113
  ### 5.3.3
114
  * New: Support for `post slug` as the new shortcode parameter under WordPress information.
115
  * New: Codemirror has been updated to latest version.
shortcoder.php CHANGED
@@ -4,13 +4,13 @@ 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.3.3
8
  Author URI: https://www.aakashweb.com/
9
  Text Domain: shortcoder
10
  Domain Path: /languages
11
  */
12
 
13
- define( 'SC_VERSION', '5.3.3' );
14
  define( 'SC_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
15
  define( 'SC_URL', plugin_dir_url( __FILE__ ) );
16
  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.3.4
8
  Author URI: https://www.aakashweb.com/
9
  Text Domain: shortcoder
10
  Domain Path: /languages
11
  */
12
 
13
+ define( 'SC_VERSION', '5.3.4' );
14
  define( 'SC_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
15
  define( 'SC_URL', plugin_dir_url( __FILE__ ) );
16
  define( 'SC_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );