Changeset 3448022
- Timestamp:
- 01/27/2026 04:05:38 PM (6 weeks ago)
- Location:
- widget-for-eventbrite-api
- Files:
-
- 12 edited
- 1 copied
-
tags/6.5.7 (copied) (copied from widget-for-eventbrite-api/trunk)
-
tags/6.5.7/changelog.txt (modified) (1 diff)
-
tags/6.5.7/includes/class-core.php (modified) (1 diff)
-
tags/6.5.7/includes/vendor/composer/installed.php (modified) (2 diffs)
-
tags/6.5.7/includes/widgets/elementor/class-eventbrite-widget-elementor-helpers.php (modified) (10 diffs)
-
tags/6.5.7/readme.txt (modified) (1 diff)
-
tags/6.5.7/widget-for-eventbrite-api.php (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/includes/class-core.php (modified) (1 diff)
-
trunk/includes/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/includes/widgets/elementor/class-eventbrite-widget-elementor-helpers.php (modified) (10 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/widget-for-eventbrite-api.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
widget-for-eventbrite-api/tags/6.5.7/changelog.txt
r3445634 r3448022 1 = 6.5.7 = 2 * Improve security for block editor and Elementor widget controls 3 1 4 = 6.5.6 = 2 5 * Fix webhook payload URL not persisting after generation (Pro Only) -
widget-for-eventbrite-api/tags/6.5.7/includes/class-core.php
r3445634 r3448022 171 171 add_filter( 'site_status_tests', array($plugin_admin, 'site_status_tests') ); 172 172 add_action( 'wp_ajax_update_widget_content', array($widget_helpers, 'update_elementor_widget_content') ); 173 add_action( 'wp_ajax_nopriv_update_widget_content', array($widget_helpers, 'update_elementor_widget_content') );174 173 add_action( 'wp_ajax_fetch_organizations_for_key', array($widget_helpers, 'get_organizations_for_key') ); 175 add_action( 'wp_ajax_nopriv_fetch_organizations_for_key', array($widget_helpers, 'get_organizations_for_key') );176 174 add_action( 'wp_ajax_fetch_events_for_key', array($widget_helpers, 'send_events_for_key') ); 177 add_action( 'wp_ajax_nopriv_fetch_events_for_key', array($widget_helpers, 'send_events_for_key') );178 175 add_action( 'wp_ajax_fetch_organizers_for_key', array($widget_helpers, 'send_organizers_for_key') ); 179 add_action( 'wp_ajax_nopriv_fetch_organizers_for_key', array($widget_helpers, 'send_organizers_for_key') );180 176 add_action( 'wp_ajax_fetch_venues_options', array($widget_helpers, 'send_venues_options') ); 181 add_action( 'wp_ajax_nopriv_fetch_venues_options', array($widget_helpers, 'send_venues_options') );182 177 add_action( 'wp_ajax_fetch_api_key_options', array($widget_helpers, 'send_api_key_options') ); 183 add_action( 'wp_ajax_nopriv_fetch_api_key_options', array($widget_helpers, 'send_api_key_options') );184 178 add_action( 'wp_ajax_validate_date', array($widget_helpers, 'validate_date') ); 185 add_action( 'wp_ajax_nopriv_validate_date', array($widget_helpers, 'validate_date') );186 179 add_action( 'init', function () { 187 180 new \WidgetForEventbriteAPI\Includes\Widgets(); -
widget-for-eventbrite-api/tags/6.5.7/includes/vendor/composer/installed.php
r3445634 r3448022 2 2 'root' => array( 3 3 'name' => 'fullworks/widget-for-eventbrite-api', 4 'pretty_version' => '6.5. 6',5 'version' => '6.5. 6.0',6 'reference' => ' e261b24b8e3d4393aad9d26fbc4dc3d8c5974fab',4 'pretty_version' => '6.5.7', 5 'version' => '6.5.7.0', 6 'reference' => '68c0ccba6be41d8f18f7cc0ebb931b1a6eb2bd64', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../../', … … 70 70 ), 71 71 'fullworks/widget-for-eventbrite-api' => array( 72 'pretty_version' => '6.5. 6',73 'version' => '6.5. 6.0',74 'reference' => ' e261b24b8e3d4393aad9d26fbc4dc3d8c5974fab',72 'pretty_version' => '6.5.7', 73 'version' => '6.5.7.0', 74 'reference' => '68c0ccba6be41d8f18f7cc0ebb931b1a6eb2bd64', 75 75 'type' => 'wordpress-plugin', 76 76 'install_path' => __DIR__ . '/../../../', -
widget-for-eventbrite-api/tags/6.5.7/includes/widgets/elementor/class-eventbrite-widget-elementor-helpers.php
r3273977 r3448022 192 192 193 193 public function get_organizations_for_key() { 194 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- just a look up 194 check_ajax_referer( 'wfea-nonce', 'nonce' ); 195 if ( !current_user_can( 'edit_posts' ) ) { 196 wp_die( -1 ); 197 } 195 198 $token = ( !empty( $_POST['token'] ) ? sanitize_text_field( wp_unslash( $_POST['token'] ) ) : '' ); 196 199 $token = $this->utilities->map_api_index_to_key( $token ); … … 199 202 200 203 public function send_events_for_key() { 201 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- just a look up 204 check_ajax_referer( 'wfea-nonce', 'nonce' ); 205 if ( !current_user_can( 'edit_posts' ) ) { 206 wp_die( -1 ); 207 } 202 208 $token = ( !empty( $_POST['token'] ) ? sanitize_text_field( wp_unslash( $_POST['token'] ) ) : $this->get_default_api_key() ); 203 209 $token = $this->utilities->map_api_index_to_key( $token ); … … 205 211 'token' => $token, 206 212 ); 207 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- just a look up208 213 if ( !empty( $_POST['organizationID'] ) ) { 209 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- just a look up210 214 $args['organization_id'] = sanitize_text_field( wp_unslash( $_POST['organizationID'] ) ); 211 215 } 212 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- just a look up213 //if ( ! empty( $_POST['organizerID'] ) ) {214 //"{"status_code":400,"error_description":"There are errors with your arguments: organizer_id - Unknown parameter","error":"ARGUMENTS_ERROR"}"215 // $args['organizer_id'] = sanitize_text_field( $_POST['organizerID'] );216 //}217 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- just a look up218 //if ( ! empty( $_POST['venueID'] ) ) {219 //"{"status_code":400,"error_description":"There are errors with your arguments: organizer_id - Unknown parameter","error":"ARGUMENTS_ERROR"}"220 // $args['venue_id'] = sanitize_text_field( $_POST['venueID'] );221 //}222 216 //"{"status_code":400,"error_description":"There are errors with your arguments: organizer_id - Unknown parameter","error":"ARGUMENTS_ERROR"}" 223 217 $events = Eventbrite_Manager::$instance->get_organizations_events( $args, false ); … … 229 223 230 224 public function send_organizers_for_key() { 225 check_ajax_referer( 'wfea-nonce', 'nonce' ); 226 if ( !current_user_can( 'edit_posts' ) ) { 227 wp_die( -1 ); 228 } 231 229 $organizers_options = $this->get_options( 'organizer' ); 232 230 wp_send_json( $organizers_options ); … … 235 233 236 234 private function get_options( $option_type ) { 237 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- just a look up235 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- nonce verified in calling public methods (send_organizers_for_key, send_venues_options). 238 236 $token = ( !empty( $_POST['token'] ) ? sanitize_text_field( wp_unslash( $_POST['token'] ) ) : '' ); 239 237 $token = $this->utilities->map_api_index_to_key( $token ); … … 242 240 $args['token'] = $token; 243 241 } 244 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- just a look up242 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- nonce verified in calling public methods. 245 243 if ( !empty( $_POST['organizationID'] ) ) { 246 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- just a look up244 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- nonce verified in calling public methods. 247 245 $args['organization_id'] = sanitize_text_field( wp_unslash( $_POST['organizationID'] ) ); 248 246 } … … 262 260 263 261 public function send_venues_options() { 262 check_ajax_referer( 'wfea-nonce', 'nonce' ); 263 if ( !current_user_can( 'edit_posts' ) ) { 264 wp_die( -1 ); 265 } 264 266 $venue_options = $this->get_options( 'venue' ); 265 267 wp_send_json( $venue_options ); … … 268 270 269 271 public function send_api_key_options() { 272 check_ajax_referer( 'wfea-nonce', 'nonce' ); 273 if ( !current_user_can( 'edit_posts' ) ) { 274 wp_die( -1 ); 275 } 270 276 wp_send_json( $this->get_api_key_options() ); 271 277 } … … 590 596 public function update_elementor_widget_content() { 591 597 check_ajax_referer( 'wfea-nonce', 'nonce' ); 598 if ( !current_user_can( 'edit_posts' ) ) { 599 wp_die( -1 ); 600 } 592 601 // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- $this->utilities->sanitize_text_or_array_field() sanitizes the input 593 602 $params = ( isset( $_POST['params'] ) ? $this->utilities->sanitize_text_or_array_field( wp_unslash( $_POST['params'] ) ) : array() ); … … 652 661 public function validate_date() { 653 662 check_ajax_referer( 'wfea-nonce', 'nonce' ); 663 if ( !current_user_can( 'edit_posts' ) ) { 664 wp_die( -1 ); 665 } 654 666 if ( isset( $_POST['wfea_date_value'] ) ) { 655 667 $date = sanitize_text_field( wp_unslash( $_POST['wfea_date_value'] ) ); -
widget-for-eventbrite-api/tags/6.5.7/readme.txt
r3445634 r3448022 3 3 Tags: eventbrite, widget, events, eventbrite widget, eventbrite shortcode 4 4 Tested up to: 6.9 5 Stable tag: 6.5. 65 Stable tag: 6.5.7 6 6 Requires PHP: 7.4 7 7 License: GPL-2.0-or-later -
widget-for-eventbrite-api/tags/6.5.7/widget-for-eventbrite-api.php
r3445634 r3448022 7 7 * Plugin URI: https://fullworksplugins.com/products/widget-for-eventbrite/ 8 8 * Description: Easily display Eventbrite events on your WordPress site 9 * Version: 6.5. 69 * Version: 6.5.7 10 10 * Requires at least: 5.6 11 11 * Requires PHP: 7.4 … … 43 43 define( 'WIDGET_FOR_EVENTBRITE_API_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 44 44 define( 'WIDGET_FOR_EVENTBRITE_API_PLUGINS_TOP_DIR', plugin_dir_path( __DIR__ ) ); 45 define( 'WIDGET_FOR_EVENTBRITE_API_PLUGIN_VERSION', '6.5. 6' );45 define( 'WIDGET_FOR_EVENTBRITE_API_PLUGIN_VERSION', '6.5.7' ); 46 46 // Include the plugin autoloader, so we can dynamically include the classes. 47 47 require_once WIDGET_FOR_EVENTBRITE_API_PLUGIN_DIR . 'includes/vendor/autoload.php'; -
widget-for-eventbrite-api/trunk/changelog.txt
r3445634 r3448022 1 = 6.5.7 = 2 * Improve security for block editor and Elementor widget controls 3 1 4 = 6.5.6 = 2 5 * Fix webhook payload URL not persisting after generation (Pro Only) -
widget-for-eventbrite-api/trunk/includes/class-core.php
r3445634 r3448022 171 171 add_filter( 'site_status_tests', array($plugin_admin, 'site_status_tests') ); 172 172 add_action( 'wp_ajax_update_widget_content', array($widget_helpers, 'update_elementor_widget_content') ); 173 add_action( 'wp_ajax_nopriv_update_widget_content', array($widget_helpers, 'update_elementor_widget_content') );174 173 add_action( 'wp_ajax_fetch_organizations_for_key', array($widget_helpers, 'get_organizations_for_key') ); 175 add_action( 'wp_ajax_nopriv_fetch_organizations_for_key', array($widget_helpers, 'get_organizations_for_key') );176 174 add_action( 'wp_ajax_fetch_events_for_key', array($widget_helpers, 'send_events_for_key') ); 177 add_action( 'wp_ajax_nopriv_fetch_events_for_key', array($widget_helpers, 'send_events_for_key') );178 175 add_action( 'wp_ajax_fetch_organizers_for_key', array($widget_helpers, 'send_organizers_for_key') ); 179 add_action( 'wp_ajax_nopriv_fetch_organizers_for_key', array($widget_helpers, 'send_organizers_for_key') );180 176 add_action( 'wp_ajax_fetch_venues_options', array($widget_helpers, 'send_venues_options') ); 181 add_action( 'wp_ajax_nopriv_fetch_venues_options', array($widget_helpers, 'send_venues_options') );182 177 add_action( 'wp_ajax_fetch_api_key_options', array($widget_helpers, 'send_api_key_options') ); 183 add_action( 'wp_ajax_nopriv_fetch_api_key_options', array($widget_helpers, 'send_api_key_options') );184 178 add_action( 'wp_ajax_validate_date', array($widget_helpers, 'validate_date') ); 185 add_action( 'wp_ajax_nopriv_validate_date', array($widget_helpers, 'validate_date') );186 179 add_action( 'init', function () { 187 180 new \WidgetForEventbriteAPI\Includes\Widgets(); -
widget-for-eventbrite-api/trunk/includes/vendor/composer/installed.php
r3445634 r3448022 2 2 'root' => array( 3 3 'name' => 'fullworks/widget-for-eventbrite-api', 4 'pretty_version' => '6.5. 6',5 'version' => '6.5. 6.0',6 'reference' => ' e261b24b8e3d4393aad9d26fbc4dc3d8c5974fab',4 'pretty_version' => '6.5.7', 5 'version' => '6.5.7.0', 6 'reference' => '68c0ccba6be41d8f18f7cc0ebb931b1a6eb2bd64', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../../', … … 70 70 ), 71 71 'fullworks/widget-for-eventbrite-api' => array( 72 'pretty_version' => '6.5. 6',73 'version' => '6.5. 6.0',74 'reference' => ' e261b24b8e3d4393aad9d26fbc4dc3d8c5974fab',72 'pretty_version' => '6.5.7', 73 'version' => '6.5.7.0', 74 'reference' => '68c0ccba6be41d8f18f7cc0ebb931b1a6eb2bd64', 75 75 'type' => 'wordpress-plugin', 76 76 'install_path' => __DIR__ . '/../../../', -
widget-for-eventbrite-api/trunk/includes/widgets/elementor/class-eventbrite-widget-elementor-helpers.php
r3273977 r3448022 192 192 193 193 public function get_organizations_for_key() { 194 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- just a look up 194 check_ajax_referer( 'wfea-nonce', 'nonce' ); 195 if ( !current_user_can( 'edit_posts' ) ) { 196 wp_die( -1 ); 197 } 195 198 $token = ( !empty( $_POST['token'] ) ? sanitize_text_field( wp_unslash( $_POST['token'] ) ) : '' ); 196 199 $token = $this->utilities->map_api_index_to_key( $token ); … … 199 202 200 203 public function send_events_for_key() { 201 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- just a look up 204 check_ajax_referer( 'wfea-nonce', 'nonce' ); 205 if ( !current_user_can( 'edit_posts' ) ) { 206 wp_die( -1 ); 207 } 202 208 $token = ( !empty( $_POST['token'] ) ? sanitize_text_field( wp_unslash( $_POST['token'] ) ) : $this->get_default_api_key() ); 203 209 $token = $this->utilities->map_api_index_to_key( $token ); … … 205 211 'token' => $token, 206 212 ); 207 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- just a look up208 213 if ( !empty( $_POST['organizationID'] ) ) { 209 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- just a look up210 214 $args['organization_id'] = sanitize_text_field( wp_unslash( $_POST['organizationID'] ) ); 211 215 } 212 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- just a look up213 //if ( ! empty( $_POST['organizerID'] ) ) {214 //"{"status_code":400,"error_description":"There are errors with your arguments: organizer_id - Unknown parameter","error":"ARGUMENTS_ERROR"}"215 // $args['organizer_id'] = sanitize_text_field( $_POST['organizerID'] );216 //}217 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- just a look up218 //if ( ! empty( $_POST['venueID'] ) ) {219 //"{"status_code":400,"error_description":"There are errors with your arguments: organizer_id - Unknown parameter","error":"ARGUMENTS_ERROR"}"220 // $args['venue_id'] = sanitize_text_field( $_POST['venueID'] );221 //}222 216 //"{"status_code":400,"error_description":"There are errors with your arguments: organizer_id - Unknown parameter","error":"ARGUMENTS_ERROR"}" 223 217 $events = Eventbrite_Manager::$instance->get_organizations_events( $args, false ); … … 229 223 230 224 public function send_organizers_for_key() { 225 check_ajax_referer( 'wfea-nonce', 'nonce' ); 226 if ( !current_user_can( 'edit_posts' ) ) { 227 wp_die( -1 ); 228 } 231 229 $organizers_options = $this->get_options( 'organizer' ); 232 230 wp_send_json( $organizers_options ); … … 235 233 236 234 private function get_options( $option_type ) { 237 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- just a look up235 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- nonce verified in calling public methods (send_organizers_for_key, send_venues_options). 238 236 $token = ( !empty( $_POST['token'] ) ? sanitize_text_field( wp_unslash( $_POST['token'] ) ) : '' ); 239 237 $token = $this->utilities->map_api_index_to_key( $token ); … … 242 240 $args['token'] = $token; 243 241 } 244 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- just a look up242 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- nonce verified in calling public methods. 245 243 if ( !empty( $_POST['organizationID'] ) ) { 246 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- just a look up244 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- nonce verified in calling public methods. 247 245 $args['organization_id'] = sanitize_text_field( wp_unslash( $_POST['organizationID'] ) ); 248 246 } … … 262 260 263 261 public function send_venues_options() { 262 check_ajax_referer( 'wfea-nonce', 'nonce' ); 263 if ( !current_user_can( 'edit_posts' ) ) { 264 wp_die( -1 ); 265 } 264 266 $venue_options = $this->get_options( 'venue' ); 265 267 wp_send_json( $venue_options ); … … 268 270 269 271 public function send_api_key_options() { 272 check_ajax_referer( 'wfea-nonce', 'nonce' ); 273 if ( !current_user_can( 'edit_posts' ) ) { 274 wp_die( -1 ); 275 } 270 276 wp_send_json( $this->get_api_key_options() ); 271 277 } … … 590 596 public function update_elementor_widget_content() { 591 597 check_ajax_referer( 'wfea-nonce', 'nonce' ); 598 if ( !current_user_can( 'edit_posts' ) ) { 599 wp_die( -1 ); 600 } 592 601 // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- $this->utilities->sanitize_text_or_array_field() sanitizes the input 593 602 $params = ( isset( $_POST['params'] ) ? $this->utilities->sanitize_text_or_array_field( wp_unslash( $_POST['params'] ) ) : array() ); … … 652 661 public function validate_date() { 653 662 check_ajax_referer( 'wfea-nonce', 'nonce' ); 663 if ( !current_user_can( 'edit_posts' ) ) { 664 wp_die( -1 ); 665 } 654 666 if ( isset( $_POST['wfea_date_value'] ) ) { 655 667 $date = sanitize_text_field( wp_unslash( $_POST['wfea_date_value'] ) ); -
widget-for-eventbrite-api/trunk/readme.txt
r3445634 r3448022 3 3 Tags: eventbrite, widget, events, eventbrite widget, eventbrite shortcode 4 4 Tested up to: 6.9 5 Stable tag: 6.5. 65 Stable tag: 6.5.7 6 6 Requires PHP: 7.4 7 7 License: GPL-2.0-or-later -
widget-for-eventbrite-api/trunk/widget-for-eventbrite-api.php
r3445634 r3448022 7 7 * Plugin URI: https://fullworksplugins.com/products/widget-for-eventbrite/ 8 8 * Description: Easily display Eventbrite events on your WordPress site 9 * Version: 6.5. 69 * Version: 6.5.7 10 10 * Requires at least: 5.6 11 11 * Requires PHP: 7.4 … … 43 43 define( 'WIDGET_FOR_EVENTBRITE_API_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 44 44 define( 'WIDGET_FOR_EVENTBRITE_API_PLUGINS_TOP_DIR', plugin_dir_path( __DIR__ ) ); 45 define( 'WIDGET_FOR_EVENTBRITE_API_PLUGIN_VERSION', '6.5. 6' );45 define( 'WIDGET_FOR_EVENTBRITE_API_PLUGIN_VERSION', '6.5.7' ); 46 46 // Include the plugin autoloader, so we can dynamically include the classes. 47 47 require_once WIDGET_FOR_EVENTBRITE_API_PLUGIN_DIR . 'includes/vendor/autoload.php';
Note: See TracChangeset
for help on using the changeset viewer.