File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ public static function wcdp_donation_form_shortcode($atts = array()): string
3535 {
3636 // Do not allow executing this Shortcode via AJAX
3737 if (wp_doing_ajax ()) {
38+ if (isset ($ _REQUEST ['action ' ]) && $ _REQUEST ['action ' ] === 'elementor_ajax ' && current_user_can ('edit_posts ' )) {
39+ return esc_html__ ('Your donation form will be displayed here. ' , 'wc-donation-platform ' );
40+ }
3841 return esc_html__ ('This shortcode does not support AJAX calls. ' , 'wc-donation-platform ' );
3942 }
4043
Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ Active development of Donation Platform for WooCommerce: Fundraising & Donation
169169fix: fee recovery checkbox not being applied
170170fix: make $product variable global to avoid issues with some payment gateways
171171fix: make sure order_counter only works for donation projects
172+ fix: improve ajax error message within Elementor editor
172173tweak: improve WooCommerce Analytics disabled error message
173174chore: switch to using wc_get_template() function
174175chore: use wc_price for amount suggestions
You can’t perform that action at this time.
0 commit comments