Version Description
- Gutenberg compatibility enabled by default
Download this release
Release Info
| Developer | gn_themes |
| Plugin | |
| Version | 5.1.1 |
| Comparing to | |
| See all releases | |
Code changes from version 5.1.0 to 5.1.1
- includes/class-shortcodes-ultimate-upgrade.php +25 -0
- includes/shortcodes/button.php +9 -0
- readme.txt +7 -2
- shortcodes-ultimate.php +2 -2
includes/class-shortcodes-ultimate-upgrade.php
CHANGED
|
@@ -80,6 +80,10 @@ final class Shortcodes_Ultimate_Upgrade {
|
|
| 80 |
$this->upgrade_to_5_0_7();
|
| 81 |
}
|
| 82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
$this->save_current_version();
|
| 84 |
|
| 85 |
}
|
|
@@ -196,4 +200,25 @@ final class Shortcodes_Ultimate_Upgrade {
|
|
| 196 |
|
| 197 |
}
|
| 198 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 199 |
}
|
| 80 |
$this->upgrade_to_5_0_7();
|
| 81 |
}
|
| 82 |
|
| 83 |
+
if ( $this->is_previous_version_less_than( '5.1.1' ) ) {
|
| 84 |
+
$this->upgrade_to_5_1_1();
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
$this->save_current_version();
|
| 88 |
|
| 89 |
}
|
| 200 |
|
| 201 |
}
|
| 202 |
|
| 203 |
+
/**
|
| 204 |
+
* Upgrade the plugin to version 5.1.1
|
| 205 |
+
*
|
| 206 |
+
* 1. Add `su_option_supported_blocks` option.
|
| 207 |
+
*
|
| 208 |
+
* @since 5.1.1
|
| 209 |
+
* @access private
|
| 210 |
+
*/
|
| 211 |
+
private function upgrade_to_5_1_1() {
|
| 212 |
+
|
| 213 |
+
/**
|
| 214 |
+
* 1. Add `su_option_supported_blocks` option.
|
| 215 |
+
*/
|
| 216 |
+
$supported_blocks = 'su_option_supported_blocks';
|
| 217 |
+
|
| 218 |
+
if ( false === get_option( $supported_blocks ) ) {
|
| 219 |
+
add_option( $supported_blocks, array_keys( su_get_config( 'supported-blocks' ) ) );
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
}
|
| 223 |
+
|
| 224 |
}
|
includes/shortcodes/button.php
CHANGED
|
@@ -346,6 +346,15 @@ function su_shortcode_button( $atts = null, $content = null ) {
|
|
| 346 |
? ' onClick="' . $atts['onclick'] . '"'
|
| 347 |
: '';
|
| 348 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 349 |
// Prepare rel attribute
|
| 350 |
$atts['rel'] = $atts['rel']
|
| 351 |
? ' rel="' . $atts['rel'] . '"'
|
| 346 |
? ' onClick="' . $atts['onclick'] . '"'
|
| 347 |
: '';
|
| 348 |
|
| 349 |
+
// Prepend `noopener` to the rel attribute value
|
| 350 |
+
if ( 'blank' === $atts['target'] ) {
|
| 351 |
+
|
| 352 |
+
$atts['rel'] = $atts['rel']
|
| 353 |
+
? 'noopener ' . $atts['rel']
|
| 354 |
+
: 'noopener';
|
| 355 |
+
|
| 356 |
+
}
|
| 357 |
+
|
| 358 |
// Prepare rel attribute
|
| 359 |
$atts['rel'] = $atts['rel']
|
| 360 |
? ' rel="' . $atts['rel'] . '"'
|
readme.txt
CHANGED
|
@@ -137,7 +137,7 @@ Yes! [How to use shortcodes in template files](http://docs.getshortcodes.com/art
|
|
| 137 |
Yes! Shortcodes Ultimate is designed to work with any theme, but your theme must include very basic things: 'wp_head' and 'wp_footer' template tags. Sometimes, the plugin may not work properly because of javascript errors caused by third-party plugins/themes.
|
| 138 |
|
| 139 |
= Where can I report a bug? =
|
| 140 |
-
You should [create an issue at GitHub](https://github.com/gndev/shortcodes-ultimate/) or [open new support ticket](https://getshortcodes.com/
|
| 141 |
|
| 142 |
= Where to find additional information? =
|
| 143 |
Plugin has comprehensive [documentation](http://docs.getshortcodes.com/).
|
|
@@ -145,11 +145,16 @@ Also, you can find more answers at [support page](https://getshortcodes.com/supp
|
|
| 145 |
|
| 146 |
= Where can I get support or talk to other users? =
|
| 147 |
If you get stuck, you can ask for help in [official plugin forum](https://wordpress.org/support/plugin/shortcodes-ultimate).
|
| 148 |
-
For help with premium add-ons, please [open new support ticket](https://getshortcodes.com/
|
| 149 |
|
| 150 |
|
| 151 |
== Changelog ==
|
| 152 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
= 5.1.0 =
|
| 154 |
|
| 155 |
**What's new**
|
| 137 |
Yes! Shortcodes Ultimate is designed to work with any theme, but your theme must include very basic things: 'wp_head' and 'wp_footer' template tags. Sometimes, the plugin may not work properly because of javascript errors caused by third-party plugins/themes.
|
| 138 |
|
| 139 |
= Where can I report a bug? =
|
| 140 |
+
You should [create an issue at GitHub](https://github.com/gndev/shortcodes-ultimate/) or [open new support ticket](https://getshortcodes.com/contact/) (for premium add-ons only).
|
| 141 |
|
| 142 |
= Where to find additional information? =
|
| 143 |
Plugin has comprehensive [documentation](http://docs.getshortcodes.com/).
|
| 145 |
|
| 146 |
= Where can I get support or talk to other users? =
|
| 147 |
If you get stuck, you can ask for help in [official plugin forum](https://wordpress.org/support/plugin/shortcodes-ultimate).
|
| 148 |
+
For help with premium add-ons, please [open new support ticket](https://getshortcodes.com/contact/).
|
| 149 |
|
| 150 |
|
| 151 |
== Changelog ==
|
| 152 |
|
| 153 |
+
= 5.1.1 =
|
| 154 |
+
|
| 155 |
+
- Gutenberg compatibility enabled by default
|
| 156 |
+
|
| 157 |
+
|
| 158 |
= 5.1.0 =
|
| 159 |
|
| 160 |
**What's new**
|
shortcodes-ultimate.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
/**
|
| 3 |
* Plugin Name: Shortcodes Ultimate
|
| 4 |
* Plugin URI: https://getshortcodes.com/
|
| 5 |
-
* Version: 5.1.
|
| 6 |
* Author: Vladimir Anokhin
|
| 7 |
* Author URI: https://vanokhin.com/
|
| 8 |
* Description: A comprehensive collection of visual components for WordPress
|
|
@@ -15,7 +15,7 @@
|
|
| 15 |
* Define plugin constants.
|
| 16 |
*/
|
| 17 |
define( 'SU_PLUGIN_FILE', __FILE__ );
|
| 18 |
-
define( 'SU_PLUGIN_VERSION', '5.1.
|
| 19 |
|
| 20 |
/**
|
| 21 |
* Load dependencies.
|
| 2 |
/**
|
| 3 |
* Plugin Name: Shortcodes Ultimate
|
| 4 |
* Plugin URI: https://getshortcodes.com/
|
| 5 |
+
* Version: 5.1.1
|
| 6 |
* Author: Vladimir Anokhin
|
| 7 |
* Author URI: https://vanokhin.com/
|
| 8 |
* Description: A comprehensive collection of visual components for WordPress
|
| 15 |
* Define plugin constants.
|
| 16 |
*/
|
| 17 |
define( 'SU_PLUGIN_FILE', __FILE__ );
|
| 18 |
+
define( 'SU_PLUGIN_VERSION', '5.1.1' );
|
| 19 |
|
| 20 |
/**
|
| 21 |
* Load dependencies.
|
