Slide Anything – Responsive Content / HTML Slider and Carousel - Version 2.3.33

Version Description

  • An issue exists with Slide Anything within the WP Dashboard when the Yoast SEO plugin is installed, and when previously created created sliders are edited the slide content previously created dissapears. After some investigation I discovered that Yoast SEO is clashing somehow with the 'Preview Slider' feature which opens a Popup Preview of the slider within the WP Dashboard Edit Slider page. So as a workaround/solution I detect whether Yoast SEO is installed and then disable the 'Preview Slider' functionality if Yoast SEO is installed on the site.
Download this release

Release Info

Developer simonpedge
Plugin Icon 128x128 Slide Anything – Responsive Content / HTML Slider and Carousel
Version 2.3.33
Comparing to
See all releases

Code changes from version 2.3.32 to 2.3.33

php/slide-anything-admin.php CHANGED
@@ -509,7 +509,6 @@ function cpt_slide_moved_content() {
509
  function cpt_slider_settings_content($post) {
510
  $num_slides = get_post_meta($post->ID, 'sa_num_slides', true);
511
  $sa_pro_version = validate_slide_anything_pro_registration();
512
-
513
  echo "<div id='sa_slider_settings'>\n";
514
  // NONCE TO PREVENT CSRF SECURITY ATTACKS
515
  wp_nonce_field(basename(__FILE__), 'nonce_save_slider');
@@ -1475,6 +1474,11 @@ function cpt_slider_slides_content($post) {
1475
 
1476
  // ##### META BOX CONTENT - 'Slider Preview/Shortcode' BOX #####
1477
  function cpt_slider_shortcode_content($post) {
 
 
 
 
 
1478
  $post_status = get_post_status($post->ID);
1479
  $allow_shortcodes = get_post_meta($post->ID, 'sa_shortcodes', true);
1480
  $shortcode = '[slide-anything id="'.$post->ID.'"]';
@@ -1491,8 +1495,9 @@ function cpt_slider_shortcode_content($post) {
1491
  $disable_preview = $other_settings_arr[5];
1492
  }
1493
 
1494
- if (($post_status == 'publish') && ($disable_preview == '0')) {
1495
  // CHECK IF THE PREVIEW PAGE ALREADY EXISTS
 
1496
  $preview_page_created = 1;
1497
  $preview_page = get_page_by_title('Slide Anything Popup Preview');
1498
  $preview_id = $preview_page->ID;
509
  function cpt_slider_settings_content($post) {
510
  $num_slides = get_post_meta($post->ID, 'sa_num_slides', true);
511
  $sa_pro_version = validate_slide_anything_pro_registration();
 
512
  echo "<div id='sa_slider_settings'>\n";
513
  // NONCE TO PREVENT CSRF SECURITY ATTACKS
514
  wp_nonce_field(basename(__FILE__), 'nonce_save_slider');
1474
 
1475
  // ##### META BOX CONTENT - 'Slider Preview/Shortcode' BOX #####
1476
  function cpt_slider_shortcode_content($post) {
1477
+ // ### CHECK IF YOAST SEO PLUGIN IS INSTALLED ###
1478
+ $yoast = 0;
1479
+ if (is_plugin_active('wordpress-seo/wp-seo.php')) {
1480
+ $yoast = 1;
1481
+ }
1482
  $post_status = get_post_status($post->ID);
1483
  $allow_shortcodes = get_post_meta($post->ID, 'sa_shortcodes', true);
1484
  $shortcode = '[slide-anything id="'.$post->ID.'"]';
1495
  $disable_preview = $other_settings_arr[5];
1496
  }
1497
 
1498
+ if (($post_status == 'publish') && ($disable_preview == '0') && ($yoast == 0)) {
1499
  // CHECK IF THE PREVIEW PAGE ALREADY EXISTS
1500
+ // DISABLE THE PREVIEW FEATURE IF 'YOAST SEO' PLUGIN IS INSTALLED
1501
  $preview_page_created = 1;
1502
  $preview_page = get_page_by_title('Slide Anything Popup Preview');
1503
  $preview_id = $preview_page->ID;
readme.txt CHANGED
@@ -98,6 +98,9 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
98
 
99
  == Changelog ==
100
 
 
 
 
101
  = 2.3.32 =
102
  * Changed the order of the items displayed within the 'Changelog' so that the most recent changes are displayed at the top of the list.
103
 
@@ -685,4 +688,7 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
685
  * Added a new feture to allow you to specify the WordPress image size to use for slide background images. Previously slide background images were all set the the "full" WordPress image size.
686
 
687
  = 2.3.32 =
688
- * Changed the order of the items displayed within the 'Changelog' so that the most recent changes are displayed at the top of the list.
 
 
 
98
 
99
  == Changelog ==
100
 
101
+ = 2.3.33 =
102
+ * An issue exists with Slide Anything within the WP Dashboard when the Yoast SEO plugin is installed, and when previously created created sliders are edited the slide content previously created dissapears. After some investigation I discovered that Yoast SEO is clashing somehow with the 'Preview Slider' feature which opens a Popup Preview of the slider within the WP Dashboard Edit Slider page. So as a workaround/solution I detect whether Yoast SEO is installed and then disable the 'Preview Slider' functionality if Yoast SEO is installed on the site.
103
+
104
  = 2.3.32 =
105
  * Changed the order of the items displayed within the 'Changelog' so that the most recent changes are displayed at the top of the list.
106
 
688
  * Added a new feture to allow you to specify the WordPress image size to use for slide background images. Previously slide background images were all set the the "full" WordPress image size.
689
 
690
  = 2.3.32 =
691
+ * Changed the order of the items displayed within the 'Changelog' so that the most recent changes are displayed at the top of the list.
692
+
693
+ = 2.3.33 =
694
+ * An issue exists with Slide Anything within the WP Dashboard when the Yoast SEO plugin is installed, and when previously created created sliders are edited the slide content previously created dissapears. After some investigation I discovered that Yoast SEO is clashing somehow with the 'Preview Slider' feature which opens a Popup Preview of the slider within the WP Dashboard Edit Slider page. So as a workaround/solution I detect whether Yoast SEO is installed and then disable the 'Preview Slider' functionality if Yoast SEO is installed on the site.
slide-anything.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://wordpress.org/plugins/slide-anything/
5
  * Description: Slide Anything allows you to create a carousel/slider where the content for each slide can be anything you want - images, text, HTML, and even shortcodes. This plugin uses the Owl Carousel jQuery plugin, and lets you create beautiful, touch enabled, responsive carousels and sliders.
6
  * Author: Simon Edge
7
- * Version: 2.3.32
8
  * License: GPLv2 or later
9
  */
10
 
4
  * Plugin URI: https://wordpress.org/plugins/slide-anything/
5
  * Description: Slide Anything allows you to create a carousel/slider where the content for each slide can be anything you want - images, text, HTML, and even shortcodes. This plugin uses the Owl Carousel jQuery plugin, and lets you create beautiful, touch enabled, responsive carousels and sliders.
6
  * Author: Simon Edge
7
+ * Version: 2.3.33
8
  * License: GPLv2 or later
9
  */
10