• Ewout

    (@pomegranate)


    There’s a bug in woo-badge-designer-lite/includes/admin/class/wobd-hook.php causing this plugin to break the output buffer when woocommerce_product_get_image is called outside of the product page context. The ob_start() call in wobd_badge_on_product is made at the beginning of the function, but outside of the product pages, the condition if ( $product ) { returns false, and ob_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 the ob_start() call to inside the if-statement fixes this.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Breaks output buffer’ is closed to new replies.