Version Description
- Bug fixes
Download this release
Release Info
Developer | metaphorcreations |
Plugin | Ditty News Ticker |
Version | 2.1.9 |
Comparing to | |
See all releases |
Code changes from version 2.1.8 to 2.1.9
- ditty-news-ticker.php +2 -2
- includes/functions.php +12 -8
- 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.
|
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.
|
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.9
|
9 |
Author: Metaphor Creations
|
10 |
Author URI: http://www.metaphorcreations.com
|
11 |
Contributors: metaphorcreations
|
31 |
|
32 |
|
33 |
|
34 |
+
define ( 'MTPHR_DNT_VERSION', '2.1.9' );
|
35 |
define ( 'MTPHR_DNT_DIR', trailingslashit(plugin_dir_path(__FILE__)) );
|
36 |
|
37 |
|
includes/functions.php
CHANGED
@@ -392,7 +392,7 @@ add_filter( 'mtphr_dnt_tick_array', 'mtphr_dnt_default_ticks', 10, 3 );
|
|
392 |
|
393 |
|
394 |
/* --------------------------------------------------------- */
|
395 |
-
/* !Create the mixed ticks - 2.1.
|
396 |
/* --------------------------------------------------------- */
|
397 |
|
398 |
if( !function_exists('mtphr_dnt_mixed_ticks') ) {
|
@@ -435,11 +435,13 @@ function mtphr_dnt_mixed_ticks( $id, $meta_data ) {
|
|
435 |
foreach( $ticks_cache[$tick['type']] as $i=>$mixed_tick ) {
|
436 |
|
437 |
$mixed_tick = apply_filters( 'mtphr_dnt_mixed_tick', $mixed_tick, $tick );
|
438 |
-
$
|
|
|
|
|
439 |
$dnt_ticks[] = array(
|
440 |
-
'type' => $
|
441 |
'tick' => $content,
|
442 |
-
'meta' => $
|
443 |
);
|
444 |
}
|
445 |
}
|
@@ -448,16 +450,18 @@ function mtphr_dnt_mixed_ticks( $id, $meta_data ) {
|
|
448 |
} elseif( isset($ticks_cache[$tick['type']][intval($tick['offset'])]) ) {
|
449 |
|
450 |
$mixed_tick = apply_filters( 'mtphr_dnt_mixed_tick', $ticks_cache[$tick['type']][intval($tick['offset'])], $tick );
|
451 |
-
$
|
|
|
|
|
452 |
$dnt_ticks[] = array(
|
453 |
-
'type' => $
|
454 |
'tick' => $content,
|
455 |
-
'meta' => $
|
456 |
);
|
457 |
}
|
458 |
}
|
459 |
}
|
460 |
-
|
461 |
// Return the new ticks
|
462 |
return apply_filters( 'mtphr_dnt_mixed_tick_array', $dnt_ticks, $id, $meta_data );
|
463 |
}
|
392 |
|
393 |
|
394 |
/* --------------------------------------------------------- */
|
395 |
+
/* !Create the mixed ticks - 2.1.9 */
|
396 |
/* --------------------------------------------------------- */
|
397 |
|
398 |
if( !function_exists('mtphr_dnt_mixed_ticks') ) {
|
435 |
foreach( $ticks_cache[$tick['type']] as $i=>$mixed_tick ) {
|
436 |
|
437 |
$mixed_tick = apply_filters( 'mtphr_dnt_mixed_tick', $mixed_tick, $tick );
|
438 |
+
$type = (is_array($mixed_tick) && isset($mixed_tick['type'])) ? $mixed_tick['type'] : '';
|
439 |
+
$content = (is_array($mixed_tick) && isset($mixed_tick['tick'])) ? $mixed_tick['tick'] : $mixed_tick;
|
440 |
+
$meta = (is_array($mixed_tick) && isset($mixed_tick['meta']) && is_array($mixed_tick['meta'])) ? $mixed_tick['meta'] : array();
|
441 |
$dnt_ticks[] = array(
|
442 |
+
'type' => $type,
|
443 |
'tick' => $content,
|
444 |
+
'meta' => $meta
|
445 |
);
|
446 |
}
|
447 |
}
|
450 |
} elseif( isset($ticks_cache[$tick['type']][intval($tick['offset'])]) ) {
|
451 |
|
452 |
$mixed_tick = apply_filters( 'mtphr_dnt_mixed_tick', $ticks_cache[$tick['type']][intval($tick['offset'])], $tick );
|
453 |
+
$type = (is_array($mixed_tick) && isset($mixed_tick['type'])) ? $mixed_tick['type'] : '';
|
454 |
+
$content = (is_array($mixed_tick) && isset($mixed_tick['tick'])) ? $mixed_tick['tick'] : $mixed_tick;
|
455 |
+
$meta = (is_array($mixed_tick) && isset($mixed_tick['meta']) && is_array($mixed_tick['meta'])) ? $mixed_tick['meta'] : array();
|
456 |
$dnt_ticks[] = array(
|
457 |
+
'type' => $type,
|
458 |
'tick' => $content,
|
459 |
+
'meta' => $meta
|
460 |
);
|
461 |
}
|
462 |
}
|
463 |
}
|
464 |
+
|
465 |
// Return the new ticks
|
466 |
return apply_filters( 'mtphr_dnt_mixed_tick_array', $dnt_ticks, $id, $meta_data );
|
467 |
}
|
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.8 =
|
76 |
* Grid bug fix from last update
|
77 |
|
@@ -428,4 +431,4 @@ The most common cause for an unresponsive ticker (when using scroll or rotate mo
|
|
428 |
|
429 |
== Upgrade Notice ==
|
430 |
|
431 |
-
|
72 |
|
73 |
== Changelog ==
|
74 |
|
75 |
+
= 2.1.9 =
|
76 |
+
* Bug fixes
|
77 |
+
|
78 |
= 2.1.8 =
|
79 |
* Grid bug fix from last update
|
80 |
|
431 |
|
432 |
== Upgrade Notice ==
|
433 |
|
434 |
+
Bug fixes
|