Ditty News Ticker - Version 2.2.2

Version Description

  • Bug fix
Download this release

Release Info

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

Code changes from version 2.2.1 to 2.2.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.2.1
9
  Author: Metaphor Creations
10
  Author URI: http://www.metaphorcreations.com
11
  Contributors: metaphorcreations
@@ -29,7 +29,7 @@ along with this program; if not, write to the Free Software
29
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30
  */
31
 
32
- define( 'MTPHR_DNT_VERSION', '2.2.1' );
33
  define( 'MTPHR_DNT_DIR', trailingslashit(plugin_dir_path( __FILE__ )) );
34
  define( 'MTPHR_DNT_FILE', trailingslashit( __FILE__ ) );
35
  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.2.2
9
  Author: Metaphor Creations
10
  Author URI: http://www.metaphorcreations.com
11
  Contributors: metaphorcreations
29
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30
  */
31
 
32
+ define( 'MTPHR_DNT_VERSION', '2.2.2' );
33
  define( 'MTPHR_DNT_DIR', trailingslashit(plugin_dir_path( __FILE__ )) );
34
  define( 'MTPHR_DNT_FILE', trailingslashit( __FILE__ ) );
35
  define( 'MTPHR_DNT_STORE_URL', 'https://www.metaphorcreations.com' );
legacy/admin/fields/fields.php CHANGED
@@ -686,7 +686,7 @@ function mtphr_dnt_field_list( $args=array() ) {
686
 
687
 
688
  /* --------------------------------------------------------- */
689
- /* !Sort - 2.0.0 */
690
  /* --------------------------------------------------------- */
691
 
692
  if( !function_exists('mtphr_dnt_field_sort') ) {
@@ -714,13 +714,12 @@ function mtphr_dnt_field_sort( $args=array() ) {
714
  $active = ($val == 'on' || !$optional_fields) ? ' active' : '';
715
 
716
  $fields = isset($items[$i]['fields']) ? $items[$i]['fields'] : '';
717
- $total_fields = count($fields);
718
- $has_fields = ( is_array($fields) && $total_fields > 0 ) ? ' has-fields' : '';
719
 
720
  echo '<div class="mtphr-dnt-sort-item'.$active.$has_fields.'">';
721
  echo mtphr_dnt_sort_checkbox( $name.'['.$i.']', $val, $optional_fields, $items[$i] );
722
 
723
- if( is_array($fields) && $total_fields > 0 ) {
724
  echo '<div class="mtphr-dnt-sort-item-fields'.$active.' mtphr-dnt-clearfix">';
725
  foreach( $fields as $fname=>$field ) {
726
 
686
 
687
 
688
  /* --------------------------------------------------------- */
689
+ /* !Sort - 2.2.2 */
690
  /* --------------------------------------------------------- */
691
 
692
  if( !function_exists('mtphr_dnt_field_sort') ) {
714
  $active = ($val == 'on' || !$optional_fields) ? ' active' : '';
715
 
716
  $fields = isset($items[$i]['fields']) ? $items[$i]['fields'] : '';
717
+ $has_fields = ( is_array( $fields ) && count( $fields ) > 0 ) ? ' has-fields' : '';
 
718
 
719
  echo '<div class="mtphr-dnt-sort-item'.$active.$has_fields.'">';
720
  echo mtphr_dnt_sort_checkbox( $name.'['.$i.']', $val, $optional_fields, $items[$i] );
721
 
722
+ if( is_array( $fields ) && count( $fields ) > 0 ) {
723
  echo '<div class="mtphr-dnt-sort-item-fields'.$active.' mtphr-dnt-clearfix">';
724
  foreach( $fields as $fname=>$field ) {
725
 
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.5
6
- Tested up to: 5.1
7
  Stable tag: /trunk/
8
  License: GPL2
9
 
@@ -72,6 +72,9 @@ The most common cause for an unresponsive ticker (when using scroll or rotate mo
72
 
73
  == Changelog ==
74
 
 
 
 
75
  = 2.2.1 =
76
  * Bug fix for missing file
77
 
@@ -492,4 +495,4 @@ The most common cause for an unresponsive ticker (when using scroll or rotate mo
492
 
493
  == Upgrade Notice ==
494
 
495
- Bug fix for missing file
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.5
6
+ Tested up to: 5.2.2
7
  Stable tag: /trunk/
8
  License: GPL2
9
 
72
 
73
  == Changelog ==
74
 
75
+ = 2.2.2 =
76
+ * Bug fix
77
+
78
  = 2.2.1 =
79
  * Bug fix for missing file
80
 
495
 
496
  == Upgrade Notice ==
497
 
498
+ Bug fix