Ditty News Ticker - Version 3.0.27

Version Description

  • Bug fix in legacy settings code
  • Bug fix in gutenberg block check code
Download this release

Release Info

Developer metaphorcreations
Plugin Icon 128x128 Ditty News Ticker
Version 3.0.27
Comparing to
See all releases

Code changes from version 3.0.26 to 3.0.27

ditty-news-ticker.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Ditty
5
  * Plugin URI: https://www.metaphorcreations.com/ditty
6
  * Description: Formerly Ditty News Ticker, Ditty is a multi-functional content display WordPress plugin.
7
- * Version: 3.0.26
8
  * Author: Metaphor Creations
9
  * Author URI: https://www.metaphorcreations.com
10
  * License: GPL-2.0+
@@ -20,7 +20,7 @@ if ( ! defined( 'WPINC' ) ) {
20
 
21
  // Plugin version.
22
  if ( ! defined( 'DITTY_VERSION' ) ) {
23
- define( 'DITTY_VERSION', '3.0.26' );
24
  }
25
 
26
  // Plugin Folder Path.
4
  * Plugin Name: Ditty
5
  * Plugin URI: https://www.metaphorcreations.com/ditty
6
  * Description: Formerly Ditty News Ticker, Ditty is a multi-functional content display WordPress plugin.
7
+ * Version: 3.0.27
8
  * Author: Metaphor Creations
9
  * Author URI: https://www.metaphorcreations.com
10
  * License: GPL-2.0+
20
 
21
  // Plugin version.
22
  if ( ! defined( 'DITTY_VERSION' ) ) {
23
+ define( 'DITTY_VERSION', '3.0.27' );
24
  }
25
 
26
  // Plugin Folder Path.
includes/hooks.php CHANGED
@@ -32,7 +32,7 @@ add_action( 'delete_post', 'ditty_delete_post_items' );
32
  /**
33
  * Check post content for Ditty blocks
34
  *
35
- * @since 3.0
36
  * @access public
37
  * @var null
38
  */
@@ -50,7 +50,7 @@ function ditty_check_content_for_blocks() {
50
  if ( ! is_array( $widget_block ) ) {
51
  continue;
52
  }
53
- $blocks = parse_blocks( $widget_block['content'] );
54
  if ( is_array( $blocks ) && count( $blocks ) > 0 ) {
55
  foreach ( $blocks as $i => $block ) {
56
  if ( 'metaphorcreations/ditty-block' === $block['blockName'] ) {
32
  /**
33
  * Check post content for Ditty blocks
34
  *
35
+ * @since 3.0.27
36
  * @access public
37
  * @var null
38
  */
50
  if ( ! is_array( $widget_block ) ) {
51
  continue;
52
  }
53
+ $blocks = isset( $widget_block['content'] ) ? parse_blocks( $widget_block['content'] ) : false;
54
  if ( is_array( $blocks ) && count( $blocks ) > 0 ) {
55
  foreach ( $blocks as $i => $block ) {
56
  if ( 'metaphorcreations/ditty-block' === $block['blockName'] ) {
legacy/inc/settings.php CHANGED
@@ -207,12 +207,13 @@ function mtphr_dnt_general_settings_css( $args ) {
207
 
208
 
209
  /* --------------------------------------------------------- */
210
- /* !Sanitize the setting fields - 2.2.10 */
211
  /* --------------------------------------------------------- */
212
 
213
- if( !function_exists('mtphr_dnt_general_settings_sanitize') ) {
214
  function mtphr_dnt_general_settings_sanitize( $fields ) {
215
-
 
 
216
  $fields['css'] = isset( $fields['css'] ) ? wp_kses_post($fields['css']) : '';
217
 
218
  // Clear the permalinks
@@ -224,7 +225,6 @@ function mtphr_dnt_general_settings_sanitize( $fields ) {
224
 
225
  return $fields;
226
  }
227
- }
228
 
229
 
230
 
207
 
208
 
209
  /* --------------------------------------------------------- */
210
+ /* !Sanitize the setting fields - 3.0.27 */
211
  /* --------------------------------------------------------- */
212
 
 
213
  function mtphr_dnt_general_settings_sanitize( $fields ) {
214
+ if ( ! is_array( $fields ) ) {
215
+ $fields = array();
216
+ }
217
  $fields['css'] = isset( $fields['css'] ) ? wp_kses_post($fields['css']) : '';
218
 
219
  // Clear the permalinks
225
 
226
  return $fields;
227
  }
 
228
 
229
 
230
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: ticker, post ticker, content slider, content list, responsive slider, content display
5
  Requires at least: 4.5
6
  Tested up to: 6.0
7
- Stable tag: 3.0.26
8
  License: GPL2
9
 
10
  Formerly Ditty News Ticker, Ditty is a multi-functional content display WordPress plugin.
@@ -130,6 +130,10 @@ The most common cause for an unresponsive Ditty (when using scroll or rotate mod
130
 
131
  == Changelog ==
132
 
 
 
 
 
133
  = 3.0.26 =
134
  * Resolved bug in single Display edit page
135
  * Updated display editor code
@@ -794,4 +798,4 @@ The most common cause for an unresponsive Ditty (when using scroll or rotate mod
794
 
795
  == Upgrade Notice ==
796
 
797
- Resolved bug in single Display edit page
4
  Tags: ticker, post ticker, content slider, content list, responsive slider, content display
5
  Requires at least: 4.5
6
  Tested up to: 6.0
7
+ Stable tag: 3.0.27
8
  License: GPL2
9
 
10
  Formerly Ditty News Ticker, Ditty is a multi-functional content display WordPress plugin.
130
 
131
  == Changelog ==
132
 
133
+ = 3.0.27 =
134
+ * Bug fix in legacy settings code
135
+ * Bug fix in gutenberg block check code
136
+
137
  = 3.0.26 =
138
  * Resolved bug in single Display edit page
139
  * Updated display editor code
798
 
799
  == Upgrade Notice ==
800
 
801
+ Bug fixes