Time For a Major Rethink
-
I think it’s time for a wordpress major rethink, for a couple of reasons, the biggest being that legacy and outdated code are really becoming an issue.
(please note, I am writing this as I am manually checking, updating, and fixing more than 200 individual wordpress installs… FOR THE THIRD FREAKING TIME IN A WEEK!).
WordPress updates have a basic, simple flaw that is truly annoying: They are overwrites and not true updates. That is to say that an update, even a major one, does not generally remove old or outdated files (or those that are security risks). So as an example, in the current genericons debacle, you must manually go out and find the example file in question and remove it. (and PS, it would have been at least an improvement to have a blank example.html file in the updates, so it overwrote / killed the security risk code). Unless you meticulously remove old code, sooner or later something will come bite you in the butt.
The wordpress update process needs to get updated to go with the times. That means rather than a pure copy and paste (which is what a manual install or patch job is), there should be an executable with each update that unpacks and installs the update from a single file, and includes the actions of deleting all previous wordpress files and installs a CLEAN update. That could include the option of zipping up and moving unused plugins and themes to a place where their content cannot be directly accessed (such as turning them into a zip file or rendering them otherwise non-executable).
I think it would be pretty good for the next major revision (aka 5.0 or 4.3 or whatever) to be a “clean slate” install, requiring that all code be deleted before the update can happen. Clean out all of the directories, disable all of the old plugins and themes, and neutralize them.
I will also repeat that I think that generally only the current default theme should be in the package, and no plugins should be part of the update. hello.php just doesn’t need to be in every update. Let’s get over the legacy and move on.
- The topic ‘Time For a Major Rethink’ is closed to new replies.