Woocommerce system status not recognizing do_shortcode in shortcode check?
-
Hi All,
We just installed Woocommerce 2.3.6 on a staging server for one of our clients sites. It’s a pretty heft update, and so far so good. One thing that has me puzzed is the System Status page, and how in the “WC Pages” section it decides to show warnings if my pages don’t have shortcodes included in them.
If I have my shortcode included in page content’s body, via WordPress’s WYSIWYG editor, then it registers just fine and recognizes that I have the shortcode included. But, if I execute the shortcode elsewhere in the page using “<?php echo do_shortcode(‘[woocommerce_cart]’);?>” or whatever, the System Status screen doesn’t want to recognize that it’s there.
Is there something I’m doing wrong or missing? I know this is just an error message, and everything works fine regardless on these pages, but Woocommerce is pretty well made overall, so it would surprise me if the check for the shortcode only looks in the WYSIWYG editor for the presence of the shortcode. It seems strange to say “oh, yeah, those error alerts… just ignore them… “. Even WooCommerce’s documentation says that including shortcodes with “do_shortcode” is fine.
Thoughts?
Thanks all,
–HJ
- The topic ‘Woocommerce system status not recognizing do_shortcode in shortcode check?’ is closed to new replies.