WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When using update feature (in wp-admin/update-core.php page), it seems to me that wp just replaces all the resources, and the changes that have been made in the working resources just get erased instead of getting merged.

At least I've been experiencing with wp-login.php that gets replaced per every update and thus I have to reflect back the change from scratch (it's not easy often because the code in the file changes upon update).

Am I right? If so, are there ways to merge the changes already made with the update?

share|improve this question
Yes, the update overwrite the old files. This is the reason why core files should not be edited, unless in absolutely needed. In that case you should do in the right way (use a SVN, mind submit a patch via Trac...) a read to this should be helpful. – gmazzap Sep 20 '13 at 0:20
up vote 0 down vote accepted

Yes, WordPress replaces all the resources.

No, there is no way to get the updater to merge changes. Even in theory, I doubt you could do that. Even the big version control systems-- SVN, GIT-- ultimately depend on user judgment. That suggests the only reasonable answer I can think of.

You should not be hacking core files at all, but if you must you will need to use a version control system on your end to try to manage your changes and merge them with each release. Of course, the automated updater will not be involved. You will need to update manually over FTP or run GIT (or other) on the production server.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.