Version Description
- Added mtphr_dnt_default_sanitized_tick filter
Download this release
Release Info
Developer | metaphorcreations |
Plugin | Ditty News Ticker |
Version | 2.1.6 |
Comparing to | |
See all releases |
Code changes from version 2.1.5 to 2.1.6
- ditty-news-ticker.php +2 -2
- includes/admin/fields/helpers.php +3 -3
- includes/admin/meta-boxes.php +6 -3
- readme.txt +9 -2
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.6
|
9 |
Author: Metaphor Creations
|
10 |
Author URI: http://www.metaphorcreations.com
|
11 |
Contributors: metaphorcreations
|
31 |
|
32 |
|
33 |
|
34 |
+
define ( 'MTPHR_DNT_VERSION', '2.1.6' );
|
35 |
define ( 'MTPHR_DNT_DIR', trailingslashit(plugin_dir_path(__FILE__)) );
|
36 |
|
37 |
|
includes/admin/fields/helpers.php
CHANGED
@@ -382,7 +382,7 @@ function mtphr_dnt_list_item( $name, $fields=array(), $val=false ) {
|
|
382 |
|
383 |
// If this is a single field
|
384 |
if( isset($fields['type']) && !is_array($fields['type']) ) {
|
385 |
-
|
386 |
// Create the field
|
387 |
if( function_exists('mtphr_dnt_field_'.$fields['type']) ) {
|
388 |
$fields['subheading'] = isset($fields['heading']) ? $fields['heading'] : '';
|
@@ -394,7 +394,7 @@ function mtphr_dnt_list_item( $name, $fields=array(), $val=false ) {
|
|
394 |
|
395 |
// If this is multiple fields
|
396 |
} else {
|
397 |
-
|
398 |
if( is_array($fields) && count($fields) > 0 ) {
|
399 |
foreach( $fields as $fname=>$field ) {
|
400 |
|
@@ -413,7 +413,7 @@ function mtphr_dnt_list_item( $name, $fields=array(), $val=false ) {
|
|
413 |
'data-name' => $name,
|
414 |
'data-key' => $fname
|
415 |
);
|
416 |
-
|
417 |
// Set a field class
|
418 |
$class = mtphr_dnt_list_item_class( $field );
|
419 |
echo '<div class="'.$class.'">';
|
382 |
|
383 |
// If this is a single field
|
384 |
if( isset($fields['type']) && !is_array($fields['type']) ) {
|
385 |
+
|
386 |
// Create the field
|
387 |
if( function_exists('mtphr_dnt_field_'.$fields['type']) ) {
|
388 |
$fields['subheading'] = isset($fields['heading']) ? $fields['heading'] : '';
|
394 |
|
395 |
// If this is multiple fields
|
396 |
} else {
|
397 |
+
|
398 |
if( is_array($fields) && count($fields) > 0 ) {
|
399 |
foreach( $fields as $fname=>$field ) {
|
400 |
|
413 |
'data-name' => $name,
|
414 |
'data-key' => $fname
|
415 |
);
|
416 |
+
|
417 |
// Set a field class
|
418 |
$class = mtphr_dnt_list_item_class( $field );
|
419 |
echo '<div class="'.$class.'">';
|
includes/admin/meta-boxes.php
CHANGED
@@ -1177,7 +1177,7 @@ function mtphr_dnt_global_fields() {
|
|
1177 |
|
1178 |
|
1179 |
/* --------------------------------------------------------- */
|
1180 |
-
/* !Save the custom meta - 2.
|
1181 |
/* --------------------------------------------------------- */
|
1182 |
|
1183 |
if( !function_exists('mtphr_dnt_metabox_save') ) {
|
@@ -1234,12 +1234,15 @@ function mtphr_dnt_metabox_save( $post_id ) {
|
|
1234 |
$sanitized_ticks = array();
|
1235 |
if( count($_POST['_mtphr_dnt_ticks']) > 0 ) {
|
1236 |
foreach( $_POST['_mtphr_dnt_ticks'] as $tick ) {
|
1237 |
-
|
|
|
1238 |
'tick' => isset($tick['tick']) ? wp_kses($tick['tick'], $allowed_tags) : '',
|
1239 |
'link' => isset($tick['link']) ? esc_url($tick['link']) : '',
|
1240 |
'target' => isset($tick['target']) ? $tick['target'] : '',
|
1241 |
'nofollow' => isset( $tick['nofollow'] ) ? $tick['nofollow'] : ''
|
1242 |
-
);
|
|
|
|
|
1243 |
}
|
1244 |
}
|
1245 |
|
1177 |
|
1178 |
|
1179 |
/* --------------------------------------------------------- */
|
1180 |
+
/* !Save the custom meta - 2.1.6 */
|
1181 |
/* --------------------------------------------------------- */
|
1182 |
|
1183 |
if( !function_exists('mtphr_dnt_metabox_save') ) {
|
1234 |
$sanitized_ticks = array();
|
1235 |
if( count($_POST['_mtphr_dnt_ticks']) > 0 ) {
|
1236 |
foreach( $_POST['_mtphr_dnt_ticks'] as $tick ) {
|
1237 |
+
|
1238 |
+
$sanitized_tick = apply_filters( 'mtphr_dnt_default_sanitized_tick', array(
|
1239 |
'tick' => isset($tick['tick']) ? wp_kses($tick['tick'], $allowed_tags) : '',
|
1240 |
'link' => isset($tick['link']) ? esc_url($tick['link']) : '',
|
1241 |
'target' => isset($tick['target']) ? $tick['target'] : '',
|
1242 |
'nofollow' => isset( $tick['nofollow'] ) ? $tick['nofollow'] : ''
|
1243 |
+
), $tick);
|
1244 |
+
|
1245 |
+
$sanitized_ticks[] = $sanitized_tick;
|
1246 |
}
|
1247 |
}
|
1248 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: metaphorcreations
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FUZKZGAJSBAE6
|
4 |
Tags: ticker, news, news ticker, rotator, data rotator, lists, data
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.
|
7 |
Stable tag: /trunk/
|
8 |
License: GPL2
|
9 |
|
@@ -55,6 +55,10 @@ We now also offer an extensions bundle that includes all current and future exte
|
|
55 |
|
56 |
Each individual Ticker post has multiple settings to customize.
|
57 |
|
|
|
|
|
|
|
|
|
58 |
[**View full help documentation.**](http://www.dittynewsticker.com/documentation/)
|
59 |
|
60 |
== Screenshots ==
|
@@ -68,6 +72,9 @@ Each individual Ticker post has multiple settings to customize.
|
|
68 |
|
69 |
== Changelog ==
|
70 |
|
|
|
|
|
|
|
71 |
= 2.1.5 =
|
72 |
* Added ditty_news_ticker function check in widgets.php file
|
73 |
|
@@ -407,4 +414,4 @@ Each individual Ticker post has multiple settings to customize.
|
|
407 |
|
408 |
== Upgrade Notice ==
|
409 |
|
410 |
-
Added
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FUZKZGAJSBAE6
|
4 |
Tags: ticker, news, news ticker, rotator, data rotator, lists, data
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.8
|
7 |
Stable tag: /trunk/
|
8 |
License: GPL2
|
9 |
|
55 |
|
56 |
Each individual Ticker post has multiple settings to customize.
|
57 |
|
58 |
+
= I have added my shortcode but the ticker is not displaying =
|
59 |
+
|
60 |
+
The most common cause for an unresponsive ticker (when using scroll or rotate mode) is a javascript error on your site coming from another plugin or theme. Any type of javascript error will most likely kill any other javascript that is loaded after it. You will need to resolve any javascript errors before the ticker will start running.
|
61 |
+
|
62 |
[**View full help documentation.**](http://www.dittynewsticker.com/documentation/)
|
63 |
|
64 |
== Screenshots ==
|
72 |
|
73 |
== Changelog ==
|
74 |
|
75 |
+
= 2.1.6 =
|
76 |
+
* Added mtphr_dnt_default_sanitized_tick filter
|
77 |
+
|
78 |
= 2.1.5 =
|
79 |
* Added ditty_news_ticker function check in widgets.php file
|
80 |
|
414 |
|
415 |
== Upgrade Notice ==
|
416 |
|
417 |
+
Added mtphr_dnt_default_sanitized_tick filter
|