Coming Soon Page & Maintenance Mode by SeedProd - Version 6.2.5

Version Description

  • Updated - Improved editor switching
Download this release

Release Info

Developer seedprod
Plugin Icon 128x128 Coming Soon Page & Maintenance Mode by SeedProd
Version 6.2.5
Comparing to
See all releases

Code changes from version 6.2.4 to 6.2.5

Files changed (3) hide show
  1. README.txt +5 -1
  2. app/bootstrap.php +14 -10
  3. coming-soon.php +2 -2
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.7
7
  Requires PHP: 5.6
8
- Stable tag: 6.2.3
9
  Text Domain: coming-soon
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -156,6 +156,10 @@ Yes, you cam build custom Product, Checkout and Cart pages with our WooCommerce
156
 
157
 
158
  == Changelog ==
 
 
 
 
159
  = 6.2.4 =
160
 
161
  * Fixed - PHP warning when php shorttags are enabled
5
  Requires at least: 5.0
6
  Tested up to: 5.7
7
  Requires PHP: 5.6
8
+ Stable tag: 6.2.4
9
  Text Domain: coming-soon
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
156
 
157
 
158
  == Changelog ==
159
+ = 6.2.5 =
160
+
161
+ * Updated - Improved editor switching
162
+
163
  = 6.2.4 =
164
 
165
  * Fixed - PHP warning when php shorttags are enabled
app/bootstrap.php CHANGED
@@ -396,7 +396,10 @@ function seedprod_lite_add_admin_edit_seedprod() {
396
  $edit_seedprod_label = '<img src="' . SEEDPROD_PLUGIN_URL . 'public/svg/admin-bar-icon.svg" style="margin-right:7px; margin-top:5px">' . __( 'Edit with SeedProd', 'coming-soon' );
397
  $back_wordpress_label = __( 'Back to WordPress Editor', 'coming-soon' );
398
 
399
- $localizations = array( 'ajax_url' => admin_url( 'admin-ajax.php' ) );
 
 
 
400
 
401
  printf(
402
  '
@@ -479,6 +482,7 @@ function seedprod_lite_add_admin_edit_seedprod() {
479
 
480
  var formData = new FormData();
481
  formData.append("action", "' . $remove_post_callback . '");
 
482
  formData.append("post_id", post_id);
483
  //console.log(formData);
484
 
@@ -599,15 +603,15 @@ add_action( 'admin_bar_menu', 'seedprod_lite_add_menu_item', 80 );
599
  add_action( 'wp_ajax_seedprod_lite_remove_post', 'seedprod_lite_remove_post' );
600
 
601
  function seedprod_lite_remove_post() {
602
- $post_id = absint($_POST['post_id']);
603
- $data = array(
604
- 'ID' => $post_id,
605
- 'post_content' => '',
606
- );
607
-
608
- delete_post_meta( $post_id, '_seedprod_page' );
609
- wp_update_post( $data );
610
- wp_die();
611
  }
612
 
613
 
396
  $edit_seedprod_label = '<img src="' . SEEDPROD_PLUGIN_URL . 'public/svg/admin-bar-icon.svg" style="margin-right:7px; margin-top:5px">' . __( 'Edit with SeedProd', 'coming-soon' );
397
  $back_wordpress_label = __( 'Back to WordPress Editor', 'coming-soon' );
398
 
399
+ $localizations = array(
400
+ 'ajax_url' => admin_url( 'admin-ajax.php' ),
401
+ 'nonce' => wp_create_nonce( 'seedprod_back_to_editor_'.$id ),
402
+ );
403
 
404
  printf(
405
  '
482
 
483
  var formData = new FormData();
484
  formData.append("action", "' . $remove_post_callback . '");
485
+ formData.append("nonce", "' . $localizations['nonce'] . '");
486
  formData.append("post_id", post_id);
487
  //console.log(formData);
488
 
603
  add_action( 'wp_ajax_seedprod_lite_remove_post', 'seedprod_lite_remove_post' );
604
 
605
  function seedprod_lite_remove_post() {
606
+ if (check_ajax_referer('seedprod_back_to_editor_'.absint($_POST['post_id']), 'nonce') && current_user_can('delete_posts')) {
607
+ $post_id = absint($_POST['post_id']);
608
+ $data = array(
609
+ 'ID' => $post_id,
610
+ );
611
+
612
+ delete_post_meta($post_id, '_seedprod_page');
613
+ wp_die();
614
+ }
615
  }
616
 
617
 
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.2.4
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.2.4' );
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.2.5
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.2.5' );
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__ ) );