Event Calendar WD – Responsive Event Calendar plugin - Version 1.1.47

Version Description

  • Fixed: PHP notices and warnings.
  • Fixed: Minor bugs with share functionality.
Download this release

Release Info

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

Code changes from version 1.1.46 to 1.1.47

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.46
7
  * Author: 10Web
8
  * Author URI: https://10web.io/plugins/
9
  * Text Domain: event-calendar-wd
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.47
7
  * Author: 10Web
8
  * Author URI: https://10web.io/plugins/
9
  * Text Domain: event-calendar-wd
includes/ecwd-display-class.php CHANGED
@@ -139,19 +139,19 @@ class ECWD_Display {
139
  $tax_query = array();
140
  $organizers_ids = array();
141
  $venue_query = array();
142
- if (isset($this->search['categories']) && $this->search['categories'] !== 0) {
143
  $tax_query[] = array(
144
  'taxonomy' => ECWD_PLUGIN_PREFIX . '_event_category',
145
  'terms' => $this->search['categories'],
146
  );
147
  }
148
- if (isset($this->search['tags']) && $this->search['tags'] > 0) {
149
  $tax_query[] = array(
150
  'taxonomy' => 'ecwd_event_tag',
151
  'terms' => $this->search['tags'],
152
  );
153
  }
154
- if (isset($this->search['venues']) && $this->search['venues'] > 0) {
155
  $venue_query['relation'] = 'OR';
156
  foreach ($this->search['venues'] as $venue) {
157
  $venue_query[] = array(
@@ -160,7 +160,7 @@ class ECWD_Display {
160
  );
161
  }
162
  }
163
- if (isset($this->search['organizers']) && $this->search['organizers'] !== 0) {
164
  $organizers_ids['relation'] = 'OR';
165
  foreach ($this->search['organizers'] as $organizer) {
166
  $organizers_ids[] = array(
139
  $tax_query = array();
140
  $organizers_ids = array();
141
  $venue_query = array();
142
+ if ( isset($this->search['categories']) && $this->search['categories'] != '0' ) {
143
  $tax_query[] = array(
144
  'taxonomy' => ECWD_PLUGIN_PREFIX . '_event_category',
145
  'terms' => $this->search['categories'],
146
  );
147
  }
148
+ if ( isset($this->search['tags']) && $this->search['tags'] > 0 ) {
149
  $tax_query[] = array(
150
  'taxonomy' => 'ecwd_event_tag',
151
  'terms' => $this->search['tags'],
152
  );
153
  }
154
+ if ( isset($this->search['venues']) && $this->search['venues'] > 0 ) {
155
  $venue_query['relation'] = 'OR';
156
  foreach ($this->search['venues'] as $venue) {
157
  $venue_query[] = array(
160
  );
161
  }
162
  }
163
+ if ( isset($this->search['organizers']) && $this->search['organizers'] != '0' ) {
164
  $organizers_ids['relation'] = 'OR';
165
  foreach ($this->search['organizers'] as $organizer) {
166
  $organizers_ids[] = array(
includes/ecwd-functions.php CHANGED
@@ -136,14 +136,7 @@ function ecwd_print_calendar($calendar_ids, $display = 'mini', $args = array(),
136
  * AJAX function change calendar months
137
  */
138
  function ecwd_ajax() {
139
-
140
- // check to see if the submitted nonce matches with the
141
- // generated nonce
142
- // if ( ! check_ajax_referer( ECWD_PLUGIN_PREFIX . '_ajax_nonce', ECWD_PLUGIN_PREFIX . '_nonce' ) ) {
143
- // die( 'Request has failed.' );
144
- // }
145
-
146
- $ids = esc_html($_POST[ECWD_PLUGIN_PREFIX . '_calendar_ids']);
147
  $args = array();
148
  $display = '';
149
  if (isset($_POST[ECWD_PLUGIN_PREFIX . '_link'])) {
@@ -157,7 +150,7 @@ function ecwd_ajax() {
157
  $display = esc_html($_POST[ECWD_PLUGIN_PREFIX . '_prev_display']);
158
  }
159
  }
160
- $type = esc_html($_POST[ECWD_PLUGIN_PREFIX . '_type']);
161
  if (isset($_POST[ECWD_PLUGIN_PREFIX . '_date']) && $_POST[ECWD_PLUGIN_PREFIX . '_date'] == 1 && !empty($date)) {
162
  $args['date'] = $date;
163
  } else {
136
  * AJAX function change calendar months
137
  */
138
  function ecwd_ajax() {
139
+ $ids = isset($_POST[ECWD_PLUGIN_PREFIX . '_calendar_ids']) ? esc_html($_POST[ECWD_PLUGIN_PREFIX . '_calendar_ids']) : "" ;
 
 
 
 
 
 
 
140
  $args = array();
141
  $display = '';
142
  if (isset($_POST[ECWD_PLUGIN_PREFIX . '_link'])) {
150
  $display = esc_html($_POST[ECWD_PLUGIN_PREFIX . '_prev_display']);
151
  }
152
  }
153
+ $type = isset($_POST[ECWD_PLUGIN_PREFIX . '_type']) ? esc_html($_POST[ECWD_PLUGIN_PREFIX . '_type']) : "" ;
154
  if (isset($_POST[ECWD_PLUGIN_PREFIX . '_date']) && $_POST[ECWD_PLUGIN_PREFIX . '_date'] == 1 && !empty($date)) {
155
  $args['date'] = $date;
156
  } else {
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: webdorado, 10web
3
  Tags: calendar, date, event, event calendar, events, events calendar, meeting, organizer, recurring, reservation, responsive, schedule
4
  Requires at least: 4.6
5
- Tested up to: 5.5
6
  Requires PHP: 5.4
7
- Stable tag: 1.1.46
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -345,6 +345,10 @@ After downloading the ZIP file of the Event Calendar WD plugin,
345
  Event Calendar WD plugin optionally embeds Google Maps on front end to display events on the map. Embedded Google Maps behave in the exact same way as if visitor has opened Google Maps site. Google may collect data about visitors, use cookies and tracking, included their logged-in experience interaction with Google platform. Google Maps are regulated under terms of Google privacy policy https://policies.google.com/privacy. The plugin asks for your consent to collect site administrator’s email address and site URL to offer customer support, deals and discounts on premium products and more.
346
 
347
  == Changelog ==
 
 
 
 
348
  = 1.1.46 =
349
  * Fixed: XSS vulnerability.
350
 
2
  Contributors: webdorado, 10web
3
  Tags: calendar, date, event, event calendar, events, events calendar, meeting, organizer, recurring, reservation, responsive, schedule
4
  Requires at least: 4.6
5
+ Tested up to: 5.8
6
  Requires PHP: 5.4
7
+ Stable tag: 1.1.47
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
345
  Event Calendar WD plugin optionally embeds Google Maps on front end to display events on the map. Embedded Google Maps behave in the exact same way as if visitor has opened Google Maps site. Google may collect data about visitors, use cookies and tracking, included their logged-in experience interaction with Google platform. Google Maps are regulated under terms of Google privacy policy https://policies.google.com/privacy. The plugin asks for your consent to collect site administrator’s email address and site URL to offer customer support, deals and discounts on premium products and more.
346
 
347
  == Changelog ==
348
+ = 1.1.47 =
349
+ * Fixed: PHP notices and warnings.
350
+ * Fixed: Minor bugs with share functionality.
351
+
352
  = 1.1.46 =
353
  * Fixed: XSS vulnerability.
354
 
views/ecwd-event-content.php CHANGED
@@ -325,7 +325,7 @@ if (!empty($calendars_id)) {
325
  <?php if ($ecwd_social_icons) { ?>
326
  <div class="ecwd-social">
327
  <span class="share-links">
328
- <a href="https://twitter.com/home?status=<?php echo get_permalink($post_id) ?>"
329
  class="ecwd-twitter"
330
  target="_blank" data-original-title="Tweet It">
331
  <span class="visuallyhidden">Twitter</span></a>
@@ -333,10 +333,6 @@ if (!empty($calendars_id)) {
333
  class="ecwd-facebook"
334
  target="_blank" data-original-title="Share on Facebook">
335
  <span class="visuallyhidden">Facebook</span></a>
336
- <a href="https://plus.google.com/share?url=<?php echo get_permalink($post_id) ?>"
337
- class="ecwd-google-plus"
338
- target="_blank" data-original-title="Share on Google+">
339
- <span class="visuallyhidden">Google+</span></a>
340
  </span>
341
  </div>
342
  <?php }
325
  <?php if ($ecwd_social_icons) { ?>
326
  <div class="ecwd-social">
327
  <span class="share-links">
328
+ <a href="https://twitter.com/intent/tweet?text=<?php echo get_permalink($post_id) ?>"
329
  class="ecwd-twitter"
330
  target="_blank" data-original-title="Tweet It">
331
  <span class="visuallyhidden">Twitter</span></a>
333
  class="ecwd-facebook"
334
  target="_blank" data-original-title="Share on Facebook">
335
  <span class="visuallyhidden">Facebook</span></a>
 
 
 
 
336
  </span>
337
  </div>
338
  <?php }
views/ecwd-event-popup.php CHANGED
@@ -275,7 +275,7 @@ $event_categories = wp_get_post_terms($post->ID, 'ecwd_event_category', $args);
275
  <?php if ($ecwd_social_icons) { ?>
276
  <div class="ecwd-social">
277
  <span class="share-links">
278
- <a href="https://twitter.com/home?status=<?php echo get_permalink($post_id) ?>"
279
  class="ecwd-twitter"
280
  target="_blank" data-original-title="Tweet It">
281
  <span class="visuallyhidden">Twitter</span></a>
@@ -283,10 +283,6 @@ $event_categories = wp_get_post_terms($post->ID, 'ecwd_event_category', $args);
283
  class="ecwd-facebook"
284
  target="_blank" data-original-title="Share on Facebook">
285
  <span class="visuallyhidden">Facebook</span></a>
286
- <a href="https://plus.google.com/share?url=<?php echo get_permalink($post_id) ?>"
287
- class="ecwd-google-plus"
288
- target="_blank" data-original-title="Share on Google+">
289
- <span class="visuallyhidden">Google+</span></a>
290
  </span>
291
  </div>
292
  <?php }
275
  <?php if ($ecwd_social_icons) { ?>
276
  <div class="ecwd-social">
277
  <span class="share-links">
278
+ <a href="https://twitter.com/intent/tweet?text=<?php echo get_permalink($post_id) ?>"
279
  class="ecwd-twitter"
280
  target="_blank" data-original-title="Tweet It">
281
  <span class="visuallyhidden">Twitter</span></a>
283
  class="ecwd-facebook"
284
  target="_blank" data-original-title="Share on Facebook">
285
  <span class="visuallyhidden">Facebook</span></a>
 
 
 
 
286
  </span>
287
  </div>
288
  <?php }
views/ecwd-organizer-content.php CHANGED
@@ -116,7 +116,7 @@ if (!empty($organizer_website)) {
116
  <?php if ($ecwd_social_icons) { ?>
117
  <div class="ecwd-social">
118
  <span class="share-links">
119
- <a href="https://twitter.com/home?status=<?php echo get_permalink($post_id) ?>" class="ecwd-twitter"
120
  target="_blank" data-original-title="Tweet It">
121
  <span class="visuallyhidden">Twitter</span></a>
122
 
@@ -125,11 +125,6 @@ if (!empty($organizer_website)) {
125
  target="_blank" data-original-title="Share on Facebook">
126
  <span class="visuallyhidden">Facebook</span></a>
127
 
128
- <a href="https://plus.google.com/share?url=<?php echo get_permalink($post_id) ?>"
129
- class="ecwd-google-plus"
130
- target="_blank" data-original-title="Share on Google+">
131
- <span class="visuallyhidden">Google+</span></a>
132
-
133
  </span>
134
  </div>
135
  <?php
116
  <?php if ($ecwd_social_icons) { ?>
117
  <div class="ecwd-social">
118
  <span class="share-links">
119
+ <a href="https://twitter.com/intent/tweet?text=<?php echo get_permalink($post_id) ?>" class="ecwd-twitter"
120
  target="_blank" data-original-title="Tweet It">
121
  <span class="visuallyhidden">Twitter</span></a>
122
 
125
  target="_blank" data-original-title="Share on Facebook">
126
  <span class="visuallyhidden">Facebook</span></a>
127
 
 
 
 
 
 
128
  </span>
129
  </div>
130
  <?php
views/ecwd-venue-content.php CHANGED
@@ -117,7 +117,7 @@ $ecwd_venue_show_map = get_post_meta($post_id, 'ecwd_venue_show_map', true);
117
  <?php if ($ecwd_social_icons) { ?>
118
  <div class="ecwd-social">
119
  <span class="share-links">
120
- <a href="http://twitter.com/home?status=<?php echo get_permalink($post_id) ?>" class="ecwd-twitter"
121
  target="_blank" data-original-title="Tweet It">
122
  <span class="visuallyhidden">Twitter</span></a>
123
 
@@ -125,12 +125,6 @@ $ecwd_venue_show_map = get_post_meta($post_id, 'ecwd_venue_show_map', true);
125
  class="ecwd-facebook"
126
  target="_blank" data-original-title="Share on Facebook">
127
  <span class="visuallyhidden">Facebook</span></a>
128
-
129
- <a href="http://plus.google.com/share?url=<?php echo get_permalink($post_id) ?>"
130
- class="ecwd-google-plus"
131
- target="_blank" data-original-title="Share on Google+">
132
- <span class="visuallyhidden">Google+</span></a>
133
-
134
  </span>
135
  </div>
136
  <?php } ?>
117
  <?php if ($ecwd_social_icons) { ?>
118
  <div class="ecwd-social">
119
  <span class="share-links">
120
+ <a href="http://twitter.com/intent/tweet?text=<?php echo get_permalink($post_id) ?>" class="ecwd-twitter"
121
  target="_blank" data-original-title="Tweet It">
122
  <span class="visuallyhidden">Twitter</span></a>
123
 
125
  class="ecwd-facebook"
126
  target="_blank" data-original-title="Share on Facebook">
127
  <span class="visuallyhidden">Facebook</span></a>
 
 
 
 
 
 
128
  </span>
129
  </div>
130
  <?php } ?>
views/single-event.php CHANGED
@@ -322,7 +322,7 @@ if ( class_exists( 'WooCommerce' ) ) {
322
 
323
  <div class="ecwd-social">
324
  <span class="share-links">
325
- <a href="https://twitter.com/home?status=<?php echo get_permalink($post_id) ?>"
326
  class="ecwd-twitter"
327
  target="_blank" data-original-title="Tweet It">
328
  <span class="visuallyhidden">Twitter</span></a>
@@ -330,10 +330,6 @@ if ( class_exists( 'WooCommerce' ) ) {
330
  class="ecwd-facebook"
331
  target="_blank" data-original-title="Share on Facebook">
332
  <span class="visuallyhidden">Facebook</span></a>
333
- <a href="https://plus.google.com/share?url=<?php echo get_permalink($post_id) ?>"
334
- class="ecwd-google-plus"
335
- target="_blank" data-original-title="Share on Google+">
336
- <span class="visuallyhidden">Google+</span></a>
337
  </span>
338
  </div>
339
  <?php }
322
 
323
  <div class="ecwd-social">
324
  <span class="share-links">
325
+ <a href="https://twitter.com/intent/tweet?text=<?php echo get_permalink($post_id) ?>"
326
  class="ecwd-twitter"
327
  target="_blank" data-original-title="Tweet It">
328
  <span class="visuallyhidden">Twitter</span></a>
330
  class="ecwd-facebook"
331
  target="_blank" data-original-title="Share on Facebook">
332
  <span class="visuallyhidden">Facebook</span></a>
 
 
 
 
333
  </span>
334
  </div>
335
  <?php }