WordPress.org

Forums

How To Undo Recent Update File? (3 posts)

  1. poledancefit
    Member
    Posted 2 years ago #

    I accidentally hit update file under the editor (main index template) and ruined all the coding my website developer created. How do I undo these recent updates and get it back to where it was before I ruined it?

    Amateur mistake, I know. Please help me fix this asap my website is all over the place!

    THANKS!

  2. hunted by a geek
    Member
    Posted 2 years ago #

    I'm not an expert but no-one else is biting so I'll tell you what I do when that happens. First you need to identify which file you edited, then you need to find the original file in your theme folder (I think it will be index.php), then you need to replace the bad file with the original one using ftp or your web hosts file manager. If you had made a lot of changes to you index.php file then all of these changes will be undone using my method.

    In general, don't edit any php files using the wordpress editor unless you are an expert, and if you must, make sure you make a copy of the file that you're editing first so you can re-upload it via ftp if you make a mistake.

  3. poledancefit
    Member
    Posted 2 years ago #

    Great advice, thanks so much for your time!!! Going to try that now, and can't believe I forgot to copy it first. Thanks for your help again, I definitely learned my lesson to leave this to the experts :-)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.