diff --git a/crellyslider.php b/crellyslider.php index dd876a7..0a41bb1 100644 --- a/crellyslider.php +++ b/crellyslider.php @@ -3,7 +3,7 @@ * Plugin Name: Crelly Slider * Plugin URI: https://wordpress.org/plugins/crelly-slider/ * Description: A free responsive slider that supports layers. Add texts, images, videos and beautify them with transitions and animations. - * Version: 1.4.0 + * Version: 1.4.1 * Author: Fabio Rinaldi * Author URI: https://github.com/fabiorino * Text Domain: crelly-slider @@ -18,7 +18,7 @@ define('CS_DEBUG', true); -define('CS_VERSION', '1.4.0'); +define('CS_VERSION', '1.4.1'); define('CS_MIN_CAPABILITY', 'manage_options'); define('CS_PATH', plugin_dir_path(__FILE__)); define('CS_PLUGIN_URL', plugins_url() . '/crelly-slider'); diff --git a/css/crellyslider.css b/css/crellyslider.css index 52dd980..b6f0ea4 100644 --- a/css/crellyslider.css +++ b/css/crellyslider.css @@ -2,7 +2,7 @@ * Plugin Name: Crelly Slider * Plugin URI: https://wordpress.org/plugins/crelly-slider/ * Description: A free responsive slider that supports layers. Add texts, images, videos and beautify them with transitions and animations. - * Version: 1.4.0 + * Version: 1.4.1 * Author: Fabio Rinaldi * Author URI: https://github.com/fabiorino * License: MIT diff --git a/css/crellyslider.min.css b/css/crellyslider.min.css index 4b73fe5..533d2ad 100644 --- a/css/crellyslider.min.css +++ b/css/crellyslider.min.css @@ -2,7 +2,7 @@ * Plugin Name: Crelly Slider * Plugin URI: https://wordpress.org/plugins/crelly-slider/ * Description: A free responsive slider that supports layers. Add texts, images, videos and beautify them with transitions and animations. - * Version: 1.4.0 + * Version: 1.4.1 * Author: Fabio Rinaldi * Author URI: https://github.com/fabiorino * License: MIT diff --git a/js/jquery.crellyslider.js b/js/jquery.crellyslider.js index 18d8781..2aeb426 100644 --- a/js/jquery.crellyslider.js +++ b/js/jquery.crellyslider.js @@ -2,7 +2,7 @@ * Plugin Name: Crelly Slider * Plugin URI: https://wordpress.org/plugins/crelly-slider/ * Description: A free responsive slider that supports layers. Add texts, images, videos and beautify them with transitions and animations. - * Version: 1.4.0 + * Version: 1.4.1 * Author: Fabio Rinaldi * Author URI: https://github.com/fabiorino * License: MIT diff --git a/js/jquery.crellyslider.min.js b/js/jquery.crellyslider.min.js index 0c34f4c..36bedf4 100644 --- a/js/jquery.crellyslider.min.js +++ b/js/jquery.crellyslider.min.js @@ -2,7 +2,7 @@ * Plugin Name: Crelly Slider * Plugin URI: https://wordpress.org/plugins/crelly-slider/ * Description: A free responsive slider that supports layers. Add texts, images, videos and beautify them with transitions and animations. - * Version: 1.4.0 + * Version: 1.4.1 * Author: Fabio Rinaldi * Author URI: https://github.com/fabiorino * License: MIT diff --git a/readme.txt b/readme.txt index 6f761d0..687a5cb 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: http://crellyslider.altervista.org/contribute-and-support/ Tags: animations, layers, texts, images, videos Requires at least: 3.9 Tested up to: 5.4 -Stable tag: 1.4.0 +Stable tag: 1.4.1 License: MIT License URI: http://opensource.org/licenses/MIT @@ -54,6 +54,9 @@ You can find the documentation here. diff --git a/wordpress/ajax.php b/wordpress/ajax.php index 77cda13..02c7526 100644 --- a/wordpress/ajax.php +++ b/wordpress/ajax.php @@ -83,7 +83,7 @@ class SliderForGutenbergBlock { $slidersForGutenberg = array(); global $wpdb; $sliders = $wpdb->get_results('SELECT id, alias, name FROM ' . $wpdb->prefix . 'crellyslider_sliders'); - if($sliders->last_error) { + if($wpdb->last_error) { echo json_encode(false); die(); } @@ -96,7 +96,7 @@ class SliderForGutenbergBlock { $slide = $wpdb->get_results($wpdb->prepare( 'SELECT background_type_image, background_type_color, background_repeat FROM ' . $wpdb->prefix . 'crellyslider_slides WHERE slider_parent = %d AND position = 0 AND draft = 0', $sliderID )); - if($slide->last_error) { + if($wpdb->last_error) { echo json_encode(false); die(); }