Version Description
- Added: Notice added to tell you that this plugin can be removed from your website as all free demos have been directly incorporated in Ocean Extra.
Download this release
Release Info
Developer | oceanwp |
Plugin | Ocean Demo Import |
Version | 1.0.10 |
Comparing to | |
See all releases |
Code changes from version 1.0.9 to 1.0.10
- ocean-demo-import.php +21 -3
- readme.txt +5 -2
ocean-demo-import.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Plugin Name: Ocean Demo Import
|
4 |
* Plugin URI: https://oceanwp.org/extension/ocean-demo-import/
|
5 |
* Description: Import the OceanWP demo content, widgets and customizer settings with one click.
|
6 |
-
* Version: 1.0.
|
7 |
* Author: OceanWP
|
8 |
* Author URI: https://oceanwp.org/
|
9 |
* Requires at least: 4.0.0
|
10 |
-
* Tested up to:
|
11 |
*
|
12 |
* Text Domain: ocean-demo-import
|
13 |
* Domain Path: /languages/
|
@@ -86,7 +86,7 @@ final class Ocean_Demo_Import {
|
|
86 |
$this->token = 'ocean-demo-import';
|
87 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
88 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
89 |
-
$this->version = '1.0.
|
90 |
|
91 |
define( 'ODI_PATH', $this->plugin_path );
|
92 |
define( 'ODI_URL', $this->plugin_url );
|
@@ -94,6 +94,8 @@ final class Ocean_Demo_Import {
|
|
94 |
register_activation_hook( __FILE__, array( $this, 'install' ) );
|
95 |
|
96 |
add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
|
|
|
|
|
97 |
}
|
98 |
|
99 |
/**
|
@@ -162,4 +164,20 @@ final class Ocean_Demo_Import {
|
|
162 |
update_option( $this->token . '-version', $this->version );
|
163 |
}
|
164 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
} // End Class
|
3 |
* Plugin Name: Ocean Demo Import
|
4 |
* Plugin URI: https://oceanwp.org/extension/ocean-demo-import/
|
5 |
* Description: Import the OceanWP demo content, widgets and customizer settings with one click.
|
6 |
+
* Version: 1.0.10
|
7 |
* Author: OceanWP
|
8 |
* Author URI: https://oceanwp.org/
|
9 |
* Requires at least: 4.0.0
|
10 |
+
* Tested up to: 5.0
|
11 |
*
|
12 |
* Text Domain: ocean-demo-import
|
13 |
* Domain Path: /languages/
|
86 |
$this->token = 'ocean-demo-import';
|
87 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
88 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
89 |
+
$this->version = '1.0.10';
|
90 |
|
91 |
define( 'ODI_PATH', $this->plugin_path );
|
92 |
define( 'ODI_URL', $this->plugin_url );
|
94 |
register_activation_hook( __FILE__, array( $this, 'install' ) );
|
95 |
|
96 |
add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
|
97 |
+
|
98 |
+
add_action( 'admin_notices', array( $this, 'admin_notice' ) );
|
99 |
}
|
100 |
|
101 |
/**
|
164 |
update_option( $this->token . '-version', $this->version );
|
165 |
}
|
166 |
|
167 |
+
/**
|
168 |
+
* Display admin notice
|
169 |
+
*
|
170 |
+
* @since 1.2.6
|
171 |
+
*/
|
172 |
+
public static function admin_notice() {
|
173 |
+
if ( ! current_user_can( 'manage_options' ) ) {
|
174 |
+
return;
|
175 |
+
} ?>
|
176 |
+
|
177 |
+
<div class="notice notice-warning">
|
178 |
+
<p><?php echo esc_html__( 'All free demos have been incorporated to the latest version of the Ocean Extra plugin, so the Ocean Demo Import plugin can be removed from your website.', 'ocean-extra' ); ?></p>
|
179 |
+
</div>
|
180 |
+
<?php
|
181 |
+
}
|
182 |
+
|
183 |
} // End Class
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: oceanwp
|
3 |
Tags: import, content, demo, data, widgets, settings, oceanwp
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to:
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -30,6 +30,9 @@ This plugin will only work with the [OceanWP](https://oceanwp.org/) theme.
|
|
30 |
|
31 |
== Changelog ==
|
32 |
|
|
|
|
|
|
|
33 |
= 1.0.9 =
|
34 |
- Added: Polish translation, thanks to Fin Fafarafiel.
|
35 |
|
2 |
Contributors: oceanwp
|
3 |
Tags: import, content, demo, data, widgets, settings, oceanwp
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 5.0
|
6 |
+
Stable tag: 1.0.10
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
30 |
|
31 |
== Changelog ==
|
32 |
|
33 |
+
= 1.0.10 =
|
34 |
+
- Added: Notice added to tell you that this plugin can be removed from your website as all free demos have been directly incorporated in Ocean Extra.
|
35 |
+
|
36 |
= 1.0.9 =
|
37 |
- Added: Polish translation, thanks to Fin Fafarafiel.
|
38 |
|