Ditty News Ticker - Version 3.0.2

Version Description

  • Removed 3.0 upgrade redirect to info screen
Download this release

Release Info

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

Code changes from version 3.0.1 to 3.0.2

Files changed (3) hide show
  1. ditty-news-ticker.php +1 -1
  2. includes/upgrades.php +12 -11
  3. readme.txt +5 -2
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.1
8
  * Author: Metaphor Creations
9
  * Author URI: https://www.metaphorcreations.com
10
  * License: GPL-2.0+
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.2
8
  * Author: Metaphor Creations
9
  * Author URI: https://www.metaphorcreations.com
10
  * License: GPL-2.0+
includes/upgrades.php CHANGED
@@ -3,16 +3,17 @@
3
  /**
4
  * Run updates
5
  *
6
- * @since 3.0
7
  * @return void
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 ) {
@@ -20,13 +21,13 @@ function ditty_updates() {
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 ) {
26
- wp_safe_redirect( admin_url( '?page=ditty_info' ) );
27
- exit;
28
- }
29
- }
30
  }
31
  add_action( 'init', 'ditty_updates' );
32
 
3
  /**
4
  * Run updates
5
  *
6
+ * @since 3.0.2
7
  * @return void
8
  */
9
  function ditty_updates() {
10
+ //$show_info = false;
11
+ $current_version = get_option( 'ditty_plugin_version', '0' );
12
+
13
 
14
  if ( version_compare( $current_version, '3.0', '<' ) ) {
15
  ditty_v3_upgrades();
16
+ //$show_info = true;
17
  }
18
 
19
  if ( DITTY_VERSION != $current_version ) {
21
  $updated = update_option( 'ditty_plugin_version', '3.0' );
22
  }
23
 
24
+ // if ( $show_info ) {
25
+ // $page = isset( $_GET['page'] ) ? $_GET['page'] : false;
26
+ // if ( 'ditty_info' != $page ) {
27
+ // wp_safe_redirect( admin_url( '?page=ditty_info' ) );
28
+ // exit;
29
+ // }
30
+ // }
31
  }
32
  add_action( 'init', 'ditty_updates' );
33
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: ticker, news, news ticker, rotator, data rotator, lists, data
5
  Requires at least: 4.5
6
  Tested up to: 5.8.2
7
- Stable tag: /trunk/
8
  License: GPL2
9
 
10
  Formerly Ditty News Ticker. Ditty is a multi-functional data display plugin.
@@ -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.1 =
61
  * Upgrade script bug fix
62
 
@@ -584,4 +587,4 @@ The most common cause for an unresponsive Ditty (when using scroll or rotate mod
584
 
585
  == Upgrade Notice ==
586
 
587
- Major upgrade to new Ditty post type
4
  Tags: ticker, news, news ticker, rotator, data rotator, lists, data
5
  Requires at least: 4.5
6
  Tested up to: 5.8.2
7
+ Stable tag: 3.0.2
8
  License: GPL2
9
 
10
  Formerly Ditty News Ticker. Ditty is a multi-functional data display plugin.
57
 
58
  == Changelog ==
59
 
60
+ = 3.0.2 =
61
+ * Removed 3.0 upgrade redirect to info screen
62
+
63
  = 3.0.1 =
64
  * Upgrade script bug fix
65
 
587
 
588
  == Upgrade Notice ==
589
 
590
+ Removed 3.0 upgrade redirect to info screen