Ditty News Ticker - Version 3.0.1

Version Description

  • Upgrade script bug fix
Download this release

Release Info

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

Code changes from version 3.0 to 3.0.1

Files changed (3) hide show
  1. ditty-news-ticker.php +2 -2
  2. includes/upgrades.php +6 -5
  3. readme.txt +3 -0
ditty-news-ticker.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Ditty (formerly Ditty News Ticker)
5
  * Plugin URI: https://www.metaphorcreations.com/ditty
6
  * Description: Formerly Ditty News Ticker. Ditty is a multi-functional data display plugin.
7
- * Version: 3.0
8
  * Author: Metaphor Creations
9
  * Author URI: https://www.metaphorcreations.com
10
  * License: GPL-2.0+
@@ -20,7 +20,7 @@ if ( ! defined( 'WPINC' ) ) {
20
 
21
  // Plugin version.
22
  if ( ! defined( 'DITTY_VERSION' ) ) {
23
- define( 'DITTY_VERSION', '3.0' );
24
  }
25
 
26
  // Plugin Folder Path.
4
  * Plugin Name: Ditty (formerly Ditty News Ticker)
5
  * Plugin URI: https://www.metaphorcreations.com/ditty
6
  * Description: Formerly Ditty News Ticker. Ditty is a multi-functional data display plugin.
7
+ * Version: 3.0.1
8
  * Author: Metaphor Creations
9
  * Author URI: https://www.metaphorcreations.com
10
  * License: GPL-2.0+
20
 
21
  // Plugin version.
22
  if ( ! defined( 'DITTY_VERSION' ) ) {
23
+ define( 'DITTY_VERSION', '3.0.1' );
24
  }
25
 
26
  // Plugin Folder Path.
includes/upgrades.php CHANGED
@@ -8,17 +8,18 @@
8
  */
9
  function ditty_updates() {
10
  $show_info = false;
11
- $current_version = get_option( 'ditty_version', '0' );
 
12
  if ( version_compare( $current_version, '3.0', '<' ) ) {
13
  ditty_v3_upgrades();
14
  $show_info = true;
15
  }
16
 
17
  if ( DITTY_VERSION != $current_version ) {
18
- update_option( 'ditty_version_upgraded_from', $current_version );
19
- update_option( 'ditty_version', DITTY_VERSION );
20
  }
21
-
22
  if ( $show_info ) {
23
  $page = isset( $_GET['page'] ) ? $_GET['page'] : false;
24
  if ( 'ditty_info' != $page ) {
@@ -27,7 +28,7 @@ function ditty_updates() {
27
  }
28
  }
29
  }
30
- add_action( 'admin_init', 'ditty_updates' );
31
 
32
  /**
33
  * Version 3.0 Updates
8
  */
9
  function ditty_updates() {
10
  $show_info = false;
11
+ $current_version = get_option( 'ditty_plugin_version' );
12
+
13
  if ( version_compare( $current_version, '3.0', '<' ) ) {
14
  ditty_v3_upgrades();
15
  $show_info = true;
16
  }
17
 
18
  if ( DITTY_VERSION != $current_version ) {
19
+ update_option( 'ditty_plugin_version_upgraded_from', $current_version );
20
+ $updated = update_option( 'ditty_plugin_version', '3.0' );
21
  }
22
+
23
  if ( $show_info ) {
24
  $page = isset( $_GET['page'] ) ? $_GET['page'] : false;
25
  if ( 'ditty_info' != $page ) {
28
  }
29
  }
30
  }
31
+ add_action( 'init', 'ditty_updates' );
32
 
33
  /**
34
  * Version 3.0 Updates
readme.txt CHANGED
@@ -57,6 +57,9 @@ The most common cause for an unresponsive Ditty (when using scroll or rotate mod
57
 
58
  == Changelog ==
59
 
 
 
 
60
  = 3.0 =
61
  * Ditty News Ticker posts have been moved to legacy code.
62
  * Completely new Ditty post type and functionality.
57
 
58
  == Changelog ==
59
 
60
+ = 3.0.1 =
61
+ * Upgrade script bug fix
62
+
63
  = 3.0 =
64
  * Ditty News Ticker posts have been moved to legacy code.
65
  * Completely new Ditty post type and functionality.