Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m having this same error has anyone found a fix for this? need asap

    i got it!

    I did all of the below:

    if ( isset($_GET[‘c’]) && 1 == $_GET[‘c’] && false !== strpos( strtolower($_SERVER[‘HTTP_ACCEPT_ENCODING’]), ‘gzip’) && ( $file = get_file($basepath . ‘/wp-tinymce.js.gz’) ) ) {
    header(‘Content-Encoding: gzip’);
    echo $file;
    } else {
    echo get_file($basepath . ‘/wp-tinymce.js’);
    }
    exit;

    It means it will look inside the .gz file if your server support unzipping or in the /wp-tinymce.js file if not.
    So you can replace the code above by this:

    echo get_file($basepath . ‘/wp-tinymce.js’);
    exit;

    and edit the wp-tinymce.js like this :
    – search for “theme_advanced_blockformats” in the file.
    – the first occurrence will be :
    … theme_advanced_blockformats:”p,address,pre,h1,h2,h3,h4,h5,h6″, …
    – remove the unwanted tags :
    … theme_advanced_blockformats:”p,h3,h4″, …

    and it still has not removed my other formatting options I only want p,h1. Any help would be great.

Viewing 3 replies - 1 through 3 (of 3 total)