Skip to:
Content
Pages
Categories
Search
Top
Bottom

[BUG+FIX] Thesis theme visual editor borkage


  • Gawain Lynch
    Participant

    @gawain

    Thesis, and potentially other themes, call filters on the_content in the header. In the case of Thesis this is done to generate page meta etc.

    The problem is that this causes bbp_replace_the_content() to fire twice (or more) and on subsequent calls the $first_run variable in the _WP_Editors class is already set, the settings therefore reset to default as the array_merge() is not run, the editor.css stylesheet is not loaded and only a very basic and broken visual editor in rendered in page.

    This can be worked around very simply at the beginning of bbp_replace_the_content() with the following check:

    if ( !in_the_loop() )
    return $content;

    Gawain

You must be logged in to reply to this topic.