• I just upgraded to 2.0 and everytime I go to edit an existing post, WordPress displays the edit page for a second or two and then automatically redirects me to the post on my site. To edit a post, I have to stop my browser (Firefox) from loading before I get redirected.

    Any clue what this problem is? It’s incredibly frustrating.

Viewing 7 replies - 1 through 7 (of 7 total)
  • If using framebuster plugin of javascript code, disable it. This is due to the preview displaying at the bottom of the edit page.

    Thread Starter todand

    (@todand)

    Yep, just figured that out myself. But I’m not willing to disable my break out of frames script. Frames suck and I don’t want any page of mine stuck in one. Is there anyway to disable the Preview frame in WordPress? This (along with several other frustrating new features) is seriously irritating.

    You can hide the preview section, but that won’t resolve the framebuster issue. For that you’ll want to modify your javascript or plugin to test on the referer. This is how I do it:

    <?php if(strpos($_SERVER['HTTP_REFERER'], get_bloginfo('wpurl')) === false) : ?>

    Javascript framebuster code goes here.

    <?php endif; ?>

    Thread Starter todand

    (@todand)

    Wow. Thank you very much, Kafkaesqui. That seems to have done the trick. It’s been a bumpy upgrade and you’ve just helped smooth it out. Thanks!

    This is a know problem. Using the latest version (v.3.1) of the plugin should solve this. Are you using that one?

    I like the preview mode but wanted to retain the framebreaker so I added this to header.php

    <!– frame buster –>
    <?
    $preview = $_REQUEST[‘preview’];
    if ($preview == “”) {
    $preview = “false”;
    }
    ?>
    <script type=”text/javascript”>
    var preview = <?php echo $preview; ?>;
    if (preview != true && self != top)
    {
    top.location.href = document.location.href;
    }
    </script>
    <!– end frame buster –>

    Hi Denis-de-Bernar

    your plugin doesn’t help ??

    lencrockett code is ‘the hero’ for my domain ??
    thanks a lot for sharing your knowledge

    last night was a very bad night for me as I have seen this

    web2announcer.com hold my domain texto.de captive in a frameset.

    regards
    Monika

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Editing Posts in 2.0 Problems’ is closed to new replies.