Version Description
- Tweak - Added preview_nonce to preview link
Download this release
Release Info
Developer | seedprod |
Plugin | Coming Soon Page & Maintenance Mode by SeedProd |
Version | 6.0.8.1 |
Comparing to | |
See all releases |
Code changes from version 6.0.8 to 6.0.8.1
- README.txt +7 -1
- coming-soon.php +2 -2
- resources/views/dashboard.php +6 -6
README.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: maintenance mode, coming soon page, coming soon, under construction, landi
|
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.5
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 6.0.8
|
9 |
Text Domain: coming-soon
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -141,6 +141,9 @@ This is always a caching issue. Go to the caching plugin's setting page and clea
|
|
141 |
|
142 |
|
143 |
== Changelog ==
|
|
|
|
|
|
|
144 |
= 6.0.8 =
|
145 |
* Fixed - PHP warning in admin to undefined database table
|
146 |
* Tweak - How Preview links are constructed
|
@@ -287,6 +290,9 @@ This is always a caching issue. Go to the caching plugin's setting page and clea
|
|
287 |
* Initial Commit
|
288 |
|
289 |
== Upgrade Notice ==
|
|
|
|
|
|
|
290 |
= 6.0.8 =
|
291 |
* Fixed - PHP warning in admin to undefined database table
|
292 |
* Tweak - How Preview links are constructed
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.5
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 6.0.8.1
|
9 |
Text Domain: coming-soon
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
141 |
|
142 |
|
143 |
== Changelog ==
|
144 |
+
= 6.0.8.1 =
|
145 |
+
* Tweak - Added preview_nonce to preview link
|
146 |
+
|
147 |
= 6.0.8 =
|
148 |
* Fixed - PHP warning in admin to undefined database table
|
149 |
* Tweak - How Preview links are constructed
|
290 |
* Initial Commit
|
291 |
|
292 |
== Upgrade Notice ==
|
293 |
+
= 6.0.8.1 =
|
294 |
+
* Tweak - Added preview_nonce to preview link
|
295 |
+
|
296 |
= 6.0.8 =
|
297 |
* Fixed - PHP warning in admin to undefined database table
|
298 |
* Tweak - How Preview links are constructed
|
coming-soon.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Coming Soon Page, Maintenance Mode & Landing Pages by SeedProd
|
4 |
Plugin URI: https://www.seedprod.com
|
5 |
Description: The #1 Coming Soon Page, Under Construction & Maintenance Mode plugin for WordPress.
|
6 |
-
Version: 6.0.8
|
7 |
Author: SeedProd
|
8 |
Author URI: https://www.seedprod.com
|
9 |
TextDomain: coming-soon
|
@@ -16,7 +16,7 @@ License: GPLv2 or later
|
|
16 |
*/
|
17 |
define('SEEDPROD_BUILD', 'lite');
|
18 |
define('SEEDPROD_SLUG', 'coming-soon/coming-soon.php');
|
19 |
-
define('SEEDPROD_VERSION', '6.0.8');
|
20 |
define('SEEDPROD_PLUGIN_PATH', plugin_dir_path(__FILE__));
|
21 |
// Example output: /Applications/MAMP/htdocs/wordpress/wp-content/plugins/seedprod/
|
22 |
define('SEEDPROD_PLUGIN_URL', plugin_dir_url(__FILE__));
|
3 |
Plugin Name: Coming Soon Page, Maintenance Mode & Landing Pages by SeedProd
|
4 |
Plugin URI: https://www.seedprod.com
|
5 |
Description: The #1 Coming Soon Page, Under Construction & Maintenance Mode plugin for WordPress.
|
6 |
+
Version: 6.0.8.1
|
7 |
Author: SeedProd
|
8 |
Author URI: https://www.seedprod.com
|
9 |
TextDomain: coming-soon
|
16 |
*/
|
17 |
define('SEEDPROD_BUILD', 'lite');
|
18 |
define('SEEDPROD_SLUG', 'coming-soon/coming-soon.php');
|
19 |
+
define('SEEDPROD_VERSION', '6.0.8.1');
|
20 |
define('SEEDPROD_PLUGIN_PATH', plugin_dir_path(__FILE__));
|
21 |
// Example output: /Applications/MAMP/htdocs/wordpress/wp-content/plugins/seedprod/
|
22 |
define('SEEDPROD_PLUGIN_URL', plugin_dir_url(__FILE__));
|
resources/views/dashboard.php
CHANGED
@@ -87,20 +87,20 @@ $seedprod_cspv5_imported = get_option('seedprod_cspv5_imported');
|
|
87 |
$csp_preview_url = '';
|
88 |
if(!empty($csp_id)){
|
89 |
//$csp_preview_url = get_preview_post_link( $csp_id );
|
90 |
-
|
91 |
-
|
92 |
}
|
93 |
$mmp_preview_url = '';
|
94 |
if(!empty($mmp_id)){
|
95 |
//$mmp_preview_url = get_preview_post_link( $mmp_id );
|
96 |
-
|
97 |
-
|
98 |
}
|
99 |
$p404_preview_url = '';
|
100 |
if(!empty($p404_id)){
|
101 |
//$p404_preview_url = get_preview_post_link( $p404_id );
|
102 |
-
|
103 |
-
|
104 |
}
|
105 |
|
106 |
|
87 |
$csp_preview_url = '';
|
88 |
if(!empty($csp_id)){
|
89 |
//$csp_preview_url = get_preview_post_link( $csp_id );
|
90 |
+
$csp_preview_url = home_url(). "/?post_type=seedprod&page_id=".$csp_id."&preview_id=".$csp_id."&preview_nonce=".wp_create_nonce('post_preview_' . $csp_id)."&preview=true";
|
91 |
+
//$csp_preview_url = home_url(). '/?post_type=seedprod&p='.$csp_id.'&preview=true';
|
92 |
}
|
93 |
$mmp_preview_url = '';
|
94 |
if(!empty($mmp_id)){
|
95 |
//$mmp_preview_url = get_preview_post_link( $mmp_id );
|
96 |
+
$mmp_preview_url = home_url(). "/?post_type=seedprod&page_id=".$mmp_id."&preview_id=".$mmp_id."&preview_nonce=".wp_create_nonce('post_preview_' . $mmp_id)."&preview=true";
|
97 |
+
//$mmp_preview_url= home_url(). '/?post_type=seedprod&p='.$mmp_id.'&preview=true';
|
98 |
}
|
99 |
$p404_preview_url = '';
|
100 |
if(!empty($p404_id)){
|
101 |
//$p404_preview_url = get_preview_post_link( $p404_id );
|
102 |
+
$p404_preview_url = home_url(). "/?post_type=seedprod&page_id=".$p404_id."&preview_id=".$p404_id."&preview_nonce=".wp_create_nonce('post_preview_' . $p404_id)."&preview=true";
|
103 |
+
//$p404_preview_url= home_url(). '/?post_type=seedprod&p='.$p404_id.'&preview=true';
|
104 |
}
|
105 |
|
106 |
|