Calling plugin with do_shortcode doesn’t create Paypal object
-
I had the problem that there was no Paypal JS object.
I found the culprit inmain.php, line 139:
—>if(is_a($post, 'WP_Post')
&& has_shortcode($post->post_content, 'wp_paypal_checkout')
|| has_shortcode(get_post_meta($post->ID, 'wp-paypal-custom-field', true), 'wp_paypal_checkout')){
<—
This doesn’t account for calling the plugin withdo_shortcode.
I fixed it locally by removing thehas_shortcodepart.Could you maybe include a fix in the code base, so I can savely install the next update without breaking things?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Calling plugin with do_shortcode doesn’t create Paypal object’ is closed to new replies.