Question

Files automatically changed ? How ?

  • Posted February 20, 2015

Hi there , Yesterday everything was fine on my website , I made some changes to functions.php , header.php , entry.php & made some page tempelates months back. But when today I opened my site these files were as they came by default means without any changes. I am not a newbie in wordpress . wp-content permissions are 755 , no one can edit files except me , I am only the administrator then how is it possible ? My all changes are lost , is there anyway to recover those ?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

When you update a WordPress theme all its files are overwritten with the newer files. That is why you should always use child themes to make changes.

Has wordpress automatically updated?

Its possible its overwritten its own files ( Templates should be in their own folder and called from the main wordpress files ) Typically you dont edit the wordpress files themselves.

If wordpress has indeed overwritten it, then unless you have a backup, I guess the files are lost.