Ditty News Ticker - Version 2.1.19

Version Description

  • Fixed wp_query bug when hide ticker option is enabled
Download this release

Release Info

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

Code changes from version 2.1.18 to 2.1.19

Files changed (3) hide show
  1. ditty-news-ticker.php +2 -2
  2. includes/functions.php +7 -7
  3. readme.txt +4 -1
ditty-news-ticker.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://dittynewsticker.com/
5
  Description: Ditty News Ticker is a multi-functional data display plugin
6
  Text Domain: ditty-news-ticker
7
  Domain Path: languages
8
- Version: 2.1.18
9
  Author: Metaphor Creations
10
  Author URI: http://www.metaphorcreations.com
11
  Contributors: metaphorcreations
@@ -31,7 +31,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
31
 
32
 
33
 
34
- define( 'MTPHR_DNT_VERSION', '2.1.18' );
35
  define( 'MTPHR_DNT_DIR', trailingslashit(plugin_dir_path( __FILE__ )) );
36
  define( 'MTPHR_DNT_FILE', trailingslashit( __FILE__ ) );
37
  define( 'MTPHR_DNT_STORE_URL', 'https://www.metaphorcreations.com' );
5
  Description: Ditty News Ticker is a multi-functional data display plugin
6
  Text Domain: ditty-news-ticker
7
  Domain Path: languages
8
+ Version: 2.1.19
9
  Author: Metaphor Creations
10
  Author URI: http://www.metaphorcreations.com
11
  Contributors: metaphorcreations
31
 
32
 
33
 
34
+ define( 'MTPHR_DNT_VERSION', '2.1.19' );
35
  define( 'MTPHR_DNT_DIR', trailingslashit(plugin_dir_path( __FILE__ )) );
36
  define( 'MTPHR_DNT_FILE', trailingslashit( __FILE__ ) );
37
  define( 'MTPHR_DNT_STORE_URL', 'https://www.metaphorcreations.com' );
includes/functions.php CHANGED
@@ -80,7 +80,7 @@ function get_mtphr_dnt_ticker( $id='', $class='', $atts=false ) {
80
  /**
81
  * Render the ticker
82
  *
83
- * @since 2.1.13
84
  */
85
  function render_mtphr_dnt_ticker( $id='', $class='', $meta_data=false ) {
86
 
@@ -217,14 +217,14 @@ function render_mtphr_dnt_ticker( $id='', $class='', $meta_data=false ) {
217
 
218
  echo '</div>';
219
  echo '</div>';
220
-
221
- // Restore the original $wp_query
222
- $wp_query = null;
223
- $wp_query = $original_query;
224
- wp_reset_postdata();
225
-
226
  $html .= ob_get_clean();
227
  }
 
 
 
 
 
228
 
229
  return $html;
230
  }
80
  /**
81
  * Render the ticker
82
  *
83
+ * @since 2.1.19
84
  */
85
  function render_mtphr_dnt_ticker( $id='', $class='', $meta_data=false ) {
86
 
217
 
218
  echo '</div>';
219
  echo '</div>';
220
+
 
 
 
 
 
221
  $html .= ob_get_clean();
222
  }
223
+
224
+ // Restore the original $wp_query
225
+ $wp_query = null;
226
+ $wp_query = $original_query;
227
+ wp_reset_postdata();
228
 
229
  return $html;
230
  }
readme.txt CHANGED
@@ -72,6 +72,9 @@ The most common cause for an unresponsive ticker (when using scroll or rotate mo
72
 
73
  == Changelog ==
74
 
 
 
 
75
  = 2.1.18 =
76
  * Fixed bug in extension license page
77
 
@@ -461,4 +464,4 @@ The most common cause for an unresponsive ticker (when using scroll or rotate mo
461
 
462
  == Upgrade Notice ==
463
 
464
- Fixed bug in extension license page.
72
 
73
  == Changelog ==
74
 
75
+ = 2.1.19 =
76
+ * Fixed wp_query bug when hide ticker option is enabled
77
+
78
  = 2.1.18 =
79
  * Fixed bug in extension license page
80
 
464
 
465
  == Upgrade Notice ==
466
 
467
+ Fixed wp_query bug when hide ticker option is enabled.