Breaks output buffer
-
There’s a bug in
woo-badge-designer-lite/includes/admin/class/wobd-hook.php
causing this plugin to break the output buffer whenwoocommerce_product_get_image
is called outside of the product page context. Theob_start()
call inwobd_badge_on_product
is made at the beginning of the function, but outside of the product pages, the conditionif ( $product ) {
returns false, andob_end_clean()
is never called. This leads to conflicts with other plugins that also make use of the output buffer (like our own WooCommerce PDF Invoices & Packing Slips), mixing up start and end of different level buffers.
Moving theob_start()
call to inside the if-statement fixes this.The page I need help with: [log in to see the link]
- The topic ‘Breaks output buffer’ is closed to new replies.