Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Forum How-To (http://forum.bytesforall.com/forumdisplay.php?f=9)
-   -   Upgrade overwrites header images and modified css files. (http://forum.bytesforall.com/showthread.php?t=5913)

grablife Feb 17, 2010 12:02 AM

Upgrade overwrites header images and modified css files.
 
I just upgraded to the latest version automatically and notice it completely deleted and overwrote my header image. Please don't do this or at the very least, leave the existing header image intact.

It also overwrites the css.php file which is understandable but maybe a feature to backup the old files first would be prudent.

kal Feb 17, 2010 04:41 AM

It also overwrites the favicon. I think that's the nature of all theme upgrades. I haven't used a theme that doesn't upgrade this way. I've just made it part of my upgrade routine. I have a folder on my server outside of the theme with a backup of the images I want to keep.

juggledad Feb 17, 2010 05:33 AM

Sorry about the loss, but this emphases a couple things.
(1) always do a backup of your database, wp-content folder and wp-config.php before doing any upgrades.
(2) if you make changes to any code - DOCUMENT, DOCUMENT, DOCUMENT!

an automatic upgrade replaces the contents of the theme folder. This wipes out any configuration you have done. Since WordPress is doing this, there is no way the theme can prevent it. If you had a backup, you would be able to add back in your images and copare code to add back in your changes.

This is also why I urge users not to make changes to the code base. If you can change the CSS in the CSS Inserts instead of muching with css.php, the changes will be in the DB and be there after the upgrade

you may want to read thru http://forum.bytesforall.com/showthr...5762#post25762


All times are GMT -6. The time now is 10:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.