Making WordPress.org

Changeset 5465


Ignore:
Timestamp:
05/03/2017 05:32:15 PM (8 years ago)
Author:
coffee2code
Message:

Handbook plugin: Disable o2 processing for callout box content.

Fixes #2803.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/callout-boxes.php

    r2489 r5465  
    138138            // Callout box output.
    139139            $output .= "<div class='callout {$class}'>";
     140
     141            // Temporarily disable o2 processing while formatting content.
     142            add_filter( 'o2_process_the_content', '__return_false', 1 );
    140143            $output .= apply_filters( 'the_content', $content );
     144            remove_filter( 'o2_process_the_content', '__return_false', 1 );
     145
    141146            $output .= '</div>';
    142147        }
Note: See TracChangeset for help on using the changeset viewer.