Version Description
- Additional upgrade functionality updates
Download this release
Release Info
Developer | metaphorcreations |
Plugin | Ditty News Ticker |
Version | 3.0.3 |
Comparing to | |
See all releases |
Code changes from version 3.0.2 to 3.0.3
- ditty-news-ticker.php +2 -2
- includes/class-ditty.php +1 -1
- includes/upgrades.php +9 -16
- 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.
|
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.3
|
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.3' );
|
24 |
}
|
25 |
|
26 |
// Plugin Folder Path.
|
includes/class-ditty.php
CHANGED
@@ -305,7 +305,7 @@ class Ditty {
|
|
305 |
}
|
306 |
require_once DITTY_DIR . 'includes/admin/columns.php';
|
307 |
require_once DITTY_DIR . 'includes/admin/settings.php';
|
308 |
-
require_once DITTY_DIR . 'includes/admin/info.php';
|
309 |
}
|
310 |
|
311 |
// Possibly add Ditty News Ticker
|
305 |
}
|
306 |
require_once DITTY_DIR . 'includes/admin/columns.php';
|
307 |
require_once DITTY_DIR . 'includes/admin/settings.php';
|
308 |
+
//require_once DITTY_DIR . 'includes/admin/info.php';
|
309 |
}
|
310 |
|
311 |
// Possibly add Ditty News Ticker
|
includes/upgrades.php
CHANGED
@@ -3,33 +3,26 @@
|
|
3 |
/**
|
4 |
* Run updates
|
5 |
*
|
6 |
-
* @since 3.0.
|
7 |
* @return void
|
8 |
*/
|
9 |
function ditty_updates() {
|
10 |
-
|
|
|
|
|
|
|
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 ) {
|
20 |
update_option( 'ditty_plugin_version_upgraded_from', $current_version );
|
21 |
-
|
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( '
|
33 |
|
34 |
/**
|
35 |
* Version 3.0 Updates
|
3 |
/**
|
4 |
* Run updates
|
5 |
*
|
6 |
+
* @since 3.0.3
|
7 |
* @return void
|
8 |
*/
|
9 |
function ditty_updates() {
|
10 |
+
if ( wp_doing_ajax() ) {
|
11 |
+
return false;
|
12 |
+
}
|
13 |
+
|
14 |
$current_version = get_option( 'ditty_plugin_version', '0' );
|
15 |
+
|
|
|
16 |
if ( version_compare( $current_version, '3.0', '<' ) ) {
|
17 |
ditty_v3_upgrades();
|
|
|
18 |
}
|
19 |
+
|
20 |
if ( DITTY_VERSION != $current_version ) {
|
21 |
update_option( 'ditty_plugin_version_upgraded_from', $current_version );
|
22 |
+
update_option( 'ditty_plugin_version', DITTY_VERSION );
|
23 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
}
|
25 |
+
add_action( 'admin_init', 'ditty_updates' );
|
26 |
|
27 |
/**
|
28 |
* Version 3.0 Updates
|
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: 3.0.
|
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.2 =
|
61 |
* Removed 3.0 upgrade redirect to info screen
|
62 |
|
@@ -587,4 +590,4 @@ The most common cause for an unresponsive Ditty (when using scroll or rotate mod
|
|
587 |
|
588 |
== Upgrade Notice ==
|
589 |
|
590 |
-
|
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.3
|
8 |
License: GPL2
|
9 |
|
10 |
Formerly Ditty News Ticker. Ditty is a multi-functional data display plugin.
|
57 |
|
58 |
== Changelog ==
|
59 |
|
60 |
+
= 3.0.3 =
|
61 |
+
* Additional upgrade functionality updates
|
62 |
+
|
63 |
= 3.0.2 =
|
64 |
* Removed 3.0 upgrade redirect to info screen
|
65 |
|
590 |
|
591 |
== Upgrade Notice ==
|
592 |
|
593 |
+
Additional upgrade functionality updates
|