Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why did I lose custom changes to the WordPress Default Theme during the last automatic upgrade?

0
Posted

Why did I lose custom changes to the WordPress Default Theme during the last automatic upgrade?

0

A core upgrade copies all the new files from the distribution over the old ones, so if you changed existing files in the WordPress Default Theme (e.g. wp-content/themes/default/style.css), those changes got overwritten with the new version of that file. Please note, a core upgrade goes through a list of “old files”, as defined in wp-admin/includes/update-core.php, and deletes those files. Any files not on the list, and not in the distribution, are preserved. Remember, that before upgrades, whether automatic or manual, both the WordPress Files and database should be backed-up as explained in WordPress Backups.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.