Event Calendar WD – Responsive Event Calendar plugin - Version 1.1.53

Version Description

Download this release

Release Info

Developer 10web
Plugin Icon 128x128 Event Calendar WD – Responsive Event Calendar plugin
Version 1.1.53
Comparing to
See all releases

Code changes from version 1.1.52 to 1.1.53

ecwd.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Event Calendar WD
4
  * Plugin URI: https://10web.io/plugins/wordpress-event-calendar/
5
  * Description: Event Calendar WD is an easy event management and planning tool with advanced features.
6
- * Version: 1.1.52
7
  * Author: 10Web
8
  * Author URI: https://10web.io/plugins/
9
  * Text Domain: event-calendar-wd
@@ -27,7 +27,7 @@ if(! defined( 'ECWD_URL' ) ){
27
  }
28
 
29
  if (!defined('ECWD_VERSION')) {
30
- define('ECWD_VERSION', "1.1.52");
31
  }
32
 
33
  if (!defined('ECWD_PLUGIN_MAIN_FILE')) {
3
  * Plugin Name: Event Calendar WD
4
  * Plugin URI: https://10web.io/plugins/wordpress-event-calendar/
5
  * Description: Event Calendar WD is an easy event management and planning tool with advanced features.
6
+ * Version: 1.1.53
7
  * Author: 10Web
8
  * Author URI: https://10web.io/plugins/
9
  * Text Domain: event-calendar-wd
27
  }
28
 
29
  if (!defined('ECWD_VERSION')) {
30
+ define('ECWD_VERSION', "1.1.53");
31
  }
32
 
33
  if (!defined('ECWD_PLUGIN_MAIN_FILE')) {
ecwd_admin_class.php CHANGED
@@ -899,7 +899,7 @@ class ECWD_Admin {
899
  "id" => 0
900
  );
901
 
902
- if (wp_verify_nonce($_POST['nonce'], 'ecwd_ajax_nonce') === false || empty($_POST['post_data'])) {
903
  die(json_encode($response));
904
  }
905
 
@@ -953,7 +953,7 @@ class ECWD_Admin {
953
  "success" => false,
954
  "id" => 0
955
  );
956
- if (wp_verify_nonce($_POST['nonce'], 'ecwd_ajax_nonce') === false) {
957
  die(json_encode($response));
958
  }
959
  update_option('ecwd_default_calendar', $_POST['id']);
899
  "id" => 0
900
  );
901
 
902
+ if (wp_verify_nonce($_POST['nonce'], 'ecwd_ajax_nonce') === false || empty($_POST['post_data']) || !current_user_can( 'manage_options' )) {
903
  die(json_encode($response));
904
  }
905
 
953
  "success" => false,
954
  "id" => 0
955
  );
956
+ if (wp_verify_nonce($_POST['nonce'], 'ecwd_ajax_nonce') === false || !current_user_can( 'manage_options' )) {
957
  die(json_encode($response));
958
  }
959
  update_option('ecwd_default_calendar', $_POST['id']);
includes/ecwd-cpt-class.php CHANGED
@@ -938,7 +938,7 @@ class ECWD_Cpt {
938
  public function save_events() {
939
  $status = 'error';
940
  $ecwd_ajaxnonce = isset($_POST['nonce']) ? sanitize_text_field( $_POST['nonce'] ) : false;
941
- if(!wp_verify_nonce( $ecwd_ajaxnonce, "ecwd_ajaxnonce" )) {
942
  json_encode(array('status' => $status));
943
  wp_die();
944
  }
@@ -970,7 +970,7 @@ class ECWD_Cpt {
970
  $status = 'error';
971
  $data = '';
972
  $ecwd_ajaxnonce = isset($_POST['nonce']) ? sanitize_text_field( $_POST['nonce'] ) : false;
973
- if(!wp_verify_nonce( $ecwd_ajaxnonce, "ecwd_ajaxnonce" )) {
974
  echo json_encode(array('status' => $status, 'data' => $data));
975
  wp_die();
976
  }
938
  public function save_events() {
939
  $status = 'error';
940
  $ecwd_ajaxnonce = isset($_POST['nonce']) ? sanitize_text_field( $_POST['nonce'] ) : false;
941
+ if(!wp_verify_nonce( $ecwd_ajaxnonce, "ecwd_ajaxnonce" ) || !current_user_can( 'manage_options' )) {
942
  json_encode(array('status' => $status));
943
  wp_die();
944
  }
970
  $status = 'error';
971
  $data = '';
972
  $ecwd_ajaxnonce = isset($_POST['nonce']) ? sanitize_text_field( $_POST['nonce'] ) : false;
973
+ if(!wp_verify_nonce( $ecwd_ajaxnonce, "ecwd_ajaxnonce" ) || !current_user_can( 'manage_options' )) {
974
  echo json_encode(array('status' => $status, 'data' => $data));
975
  wp_die();
976
  }
includes/ecwd-functions.php CHANGED
@@ -318,7 +318,7 @@ function replaceFirstImages($content) {
318
  }
319
 
320
  function ecwd_event_popup_ajax() {
321
- if ( wp_verify_nonce($_POST['ecwd_nonce'], 'ecwd_ajax_nonce') === false ) {
322
  die();
323
  }
324
  $ajax_start_date = isset($_POST['start_date']) ? sanitize_title($_POST['start_date']) : null;
318
  }
319
 
320
  function ecwd_event_popup_ajax() {
321
+ if ( wp_verify_nonce($_POST['ecwd_nonce'], 'ecwd_ajax_nonce') === false || !current_user_can( 'manage_options' ) ) {
322
  die();
323
  }
324
  $ajax_start_date = isset($_POST['start_date']) ? sanitize_title($_POST['start_date']) : null;
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: webdorado, 10web
3
  Requires at least: 4.6
4
  Tested up to: 5.5
5
  Requires PHP: 5.4
6
- Stable tag: 1.1.52
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
- Event
3
  Requires at least: 4.6
4
  Tested up to: 5.5
5
  Requires PHP: 5.4
6
+ Stable tag: 1.1.53
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
+ Event