Reset after showing shortcode. Closes #2475.

This commit is contained in:
Mike Jolley 2013-02-20 18:10:03 +00:00
parent 5f304f0534
commit e0ef659cb9
1 changed files with 4 additions and 0 deletions

View File

@ -546,6 +546,8 @@ class WC_Shortcodes {
</p><?php
wp_reset_postdata();
return ob_get_clean();
} elseif ( 'product_variation' == $product_data->post_type ) {
@ -580,6 +582,8 @@ class WC_Shortcodes {
</p><?php
wp_reset_postdata();
return ob_get_clean();
}