Version Description
- Fixed bug in ticker script filter when using unique_ids
Download this release
Release Info
Developer | metaphorcreations |
Plugin | Ditty News Ticker |
Version | 1.4.11 |
Comparing to | |
See all releases |
Code changes from version 1.4.10 to 1.4.11
- ditty-news-ticker.php +2 -4
- includes/scripts.php +3 -3
- readme.txt +4 -1
ditty-news-ticker.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Ditty News Ticker
|
4 |
Plugin URI: http://dittynewsticker.com/
|
5 |
Description: Ditty News Ticker is a multi-functional data display plugin
|
6 |
-
Version: 1.4.
|
7 |
Author: Metaphor Creations
|
8 |
Author URI: http://www.metaphorcreations.com
|
9 |
License: GPL2
|
@@ -32,7 +32,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
32 |
/* !Define constants - 1.4.10 */
|
33 |
/* --------------------------------------------------------- */
|
34 |
|
35 |
-
define ( 'MTPHR_DNT_VERSION', '1.4.
|
36 |
define ( 'MTPHR_DNT_DIR', plugin_dir_path(__FILE__) );
|
37 |
define ( 'MTPHR_DNT_URL', plugins_url().'/ditty-news-ticker' );
|
38 |
|
@@ -84,5 +84,3 @@ function mtphr_dnt_deactivation() {
|
|
84 |
}
|
85 |
register_deactivation_hook( __FILE__, 'mtphr_dnt_deactivation' );
|
86 |
|
87 |
-
|
88 |
-
|
3 |
Plugin Name: Ditty News Ticker
|
4 |
Plugin URI: http://dittynewsticker.com/
|
5 |
Description: Ditty News Ticker is a multi-functional data display plugin
|
6 |
+
Version: 1.4.11
|
7 |
Author: Metaphor Creations
|
8 |
Author URI: http://www.metaphorcreations.com
|
9 |
License: GPL2
|
32 |
/* !Define constants - 1.4.10 */
|
33 |
/* --------------------------------------------------------- */
|
34 |
|
35 |
+
define ( 'MTPHR_DNT_VERSION', '1.4.11' );
|
36 |
define ( 'MTPHR_DNT_DIR', plugin_dir_path(__FILE__) );
|
37 |
define ( 'MTPHR_DNT_URL', plugins_url().'/ditty-news-ticker' );
|
38 |
|
84 |
}
|
85 |
register_deactivation_hook( __FILE__, 'mtphr_dnt_deactivation' );
|
86 |
|
|
|
|
includes/scripts.php
CHANGED
@@ -41,7 +41,7 @@ add_action( 'wp_head', 'mtphr_dnt_custom_css' );
|
|
41 |
|
42 |
|
43 |
/* --------------------------------------------------------- */
|
44 |
-
/* !Initialize the ticker scripts - 1.4.
|
45 |
/* --------------------------------------------------------- */
|
46 |
|
47 |
function mtphr_dnt_tickers_init_scripts() {
|
@@ -55,8 +55,8 @@ function mtphr_dnt_tickers_init_scripts() {
|
|
55 |
$filtered_tickers = array();
|
56 |
$id_array = array();
|
57 |
foreach ( $mtphr_dnt_ticker_scripts as $ticker) {
|
58 |
-
if (!
|
59 |
-
$id_array[] = $ticker['id'];
|
60 |
$filtered_tickers[] = $ticker;
|
61 |
}
|
62 |
}
|
41 |
|
42 |
|
43 |
/* --------------------------------------------------------- */
|
44 |
+
/* !Initialize the ticker scripts - 1.4.11 */
|
45 |
/* --------------------------------------------------------- */
|
46 |
|
47 |
function mtphr_dnt_tickers_init_scripts() {
|
55 |
$filtered_tickers = array();
|
56 |
$id_array = array();
|
57 |
foreach ( $mtphr_dnt_ticker_scripts as $ticker) {
|
58 |
+
if (!array_key_exists($ticker['id'], $id_array)) {
|
59 |
+
$id_array['id'] = $ticker['id'];
|
60 |
$filtered_tickers[] = $ticker;
|
61 |
}
|
62 |
}
|
readme.txt
CHANGED
@@ -54,6 +54,9 @@ Each individual Ticker post has multiple settings to customize.
|
|
54 |
|
55 |
== Changelog ==
|
56 |
|
|
|
|
|
|
|
57 |
= 1.4.10 =
|
58 |
* Moved plugin files to GitHub
|
59 |
|
@@ -245,4 +248,4 @@ Each individual Ticker post has multiple settings to customize.
|
|
245 |
|
246 |
== Upgrade Notice ==
|
247 |
|
248 |
-
|
54 |
|
55 |
== Changelog ==
|
56 |
|
57 |
+
= 1.4.11 =
|
58 |
+
* Fixed bug in ticker script filter when using unique_ids
|
59 |
+
|
60 |
= 1.4.10 =
|
61 |
* Moved plugin files to GitHub
|
62 |
|
248 |
|
249 |
== Upgrade Notice ==
|
250 |
|
251 |
+
Fixed bug in ticker script filter when using unique_ids.
|