Ditty News Ticker - Version 2.1.8

Version Description

  • Grid bug fix from last update
Download this release

Release Info

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

Code changes from version 2.1.7 to 2.1.8

Files changed (3) hide show
  1. ditty-news-ticker.php +2 -2
  2. includes/filters.php +3 -3
  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.7
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.7' );
35
  define ( 'MTPHR_DNT_DIR', trailingslashit(plugin_dir_path(__FILE__)) );
36
 
37
 
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.8
9
  Author: Metaphor Creations
10
  Author URI: http://www.metaphorcreations.com
11
  Contributors: metaphorcreations
31
 
32
 
33
 
34
+ define ( 'MTPHR_DNT_VERSION', '2.1.8' );
35
  define ( 'MTPHR_DNT_DIR', trailingslashit(plugin_dir_path(__FILE__)) );
36
 
37
 
includes/filters.php CHANGED
@@ -30,7 +30,7 @@ add_action( 'init', 'mtphr_dnt_oembed' );
30
 
31
 
32
  /* --------------------------------------------------------- */
33
- /* !Make a grid out of the ticks - 1.5.5 */
34
  /* --------------------------------------------------------- */
35
 
36
  function mtphr_dnt_tick_grid( $dnt_ticks, $id, $meta_data ) {
@@ -60,8 +60,8 @@ function mtphr_dnt_tick_grid( $dnt_ticks, $id, $meta_data ) {
60
  foreach( $dnt_ticks as $i=>$tick ) {
61
 
62
  // Get the type and tick
63
- $type = ( $_mtphr_dnt_type == 'mixed' ) ? $tick['type'] : $_mtphr_dnt_type;
64
- $tick = ( $_mtphr_dnt_type == 'mixed' ) ? $tick['tick'] : $tick;
65
 
66
  $data .= '<td class="mtphr-dnt-grid-item mtphr-dnt-grid-item-'.($col_counter+1).' mtphr-dnt-grid-item-'.$type.'" '.$style.'>'.$tick.'</td>';
67
 
30
 
31
 
32
  /* --------------------------------------------------------- */
33
+ /* !Make a grid out of the ticks - 2.1.8 */
34
  /* --------------------------------------------------------- */
35
 
36
  function mtphr_dnt_tick_grid( $dnt_ticks, $id, $meta_data ) {
60
  foreach( $dnt_ticks as $i=>$tick ) {
61
 
62
  // Get the type and tick
63
+ $type = ( is_array($tick) && isset($tick['type']) ) ? $tick['type'] : $_mtphr_dnt_type;
64
+ $tick = ( is_array($tick) && isset($tick['tick']) ) ? $tick['tick'] : $tick;
65
 
66
  $data .= '<td class="mtphr-dnt-grid-item mtphr-dnt-grid-item-'.($col_counter+1).' mtphr-dnt-grid-item-'.$type.'" '.$style.'>'.$tick.'</td>';
67
 
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.7 =
76
  * Removed mtphr_dnt_default_sanitized_tick filter
77
  * Added mtphr_dnt_sanitized_tick filter
@@ -425,4 +428,4 @@ The most common cause for an unresponsive ticker (when using scroll or rotate mo
425
 
426
  == Upgrade Notice ==
427
 
428
- Multiple updates
72
 
73
  == Changelog ==
74
 
75
+ = 2.1.8 =
76
+ * Grid bug fix from last update
77
+
78
  = 2.1.7 =
79
  * Removed mtphr_dnt_default_sanitized_tick filter
80
  * Added mtphr_dnt_sanitized_tick filter
428
 
429
  == Upgrade Notice ==
430
 
431
+ Grid bug fix from last update