WordPress.org

Ready to get started?Download WordPress

Forums

Editing Posts in 2.0 Problems (8 posts)

  1. todand
    Member
    Posted 8 years ago #

    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.

  2. Kafkaesqui

    Posted 8 years ago #

    If using framebuster plugin of javascript code, disable it. This is due to the preview displaying at the bottom of the edit page.

  3. todand
    Member
    Posted 8 years ago #

    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.

  4. Kafkaesqui

    Posted 8 years ago #

    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; ?>

  5. todand
    Member
    Posted 8 years ago #

    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!

  6. Denis de Bernardy
    Member
    Posted 8 years ago #

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

  7. lencrockett
    Member
    Posted 7 years ago #

    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 -->

  8. Monika
    Member
    Posted 7 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic