• Each time the WordPress team releases a new version, we have to do a lot of careful manipulations to install it (manually delete some folders, keep certain files and remove some others, etc). That’s really boring.

    It would be a great idea to write a script for automating this process, comparing the WP versions and just replacing the files that have to be replaced.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Moderator James Huff

    (@macmanx)

    ^_^ You just have to know the right places to look:

    An automated version checking plugin (will automatically notify you of new releases): https://www.ftwr.co.uk/blog/archives/2005/06/27/wordpress-version-check/

    Angsuman’s automated v1.5.1.2 to v1.5.1.3 upgrade package (he may release more in the future): https://blog.taragana.com/index.php/archive/wordpress-patch-upgrade-from-1512-to-1512-made-available/

    Thread Starter Thierry

    (@thierry)

    Yes, that’s exactly what I needed ! Thanks.

    But why the WP team does not provide such scripts ? Ok, this is not a problem for me to delete files et reinstall WP from scratch, but I imagine that for some people this is something really difficult.

    You could write some ??

    Maybe they will happen, maybe they will not.
    The fact is that scripts / patches or not, if you customise your install, you need to spend longer upgrading it. That is true for any software on any machine anywhere. WordPress is damn good as it is but it continues to develop – accepting that is part of the deal surely.

    Thread Starter Thierry

    (@thierry)

    You’re right. For customized intallation, a script is not enough. But this kind of script is intended to be used by people having little or no experience in computing, and they certainly do not customized their install.

    The simplemachines forums (https://www.simplemachines.org) have a great way of auto-updating… and the plugins are managed through a ‘package manager’, which allows you to download plugins from several servers. Perhaps there could be a way of updating in a similar way? (Usually a 1-click process through the admin panel in SMF).

    WP is very unlikely to do automatic updating of the core anytime soon, because of permissions/security issues. Scores of people are always going to run into issues with it.

    Your best bet is to look for third party plugins. ‘Changed files only’ archives are a great idea if they’re continuously maintained by a trusted person.

    That ‘trusted person’ is the key Firas. While it’s nice to grab angus man’s patch files, I think alot of us would feel safer with it if they could just be downloaded similarly from the WP site. At least then we know they’re as real a deal as the actual full package.

    @phonakins
    Frankly I too would love to get out of this thankless job. Its really the job of the development team. I maintain multiple blogs, so I used a patch file for my blogs. Then I decided to make it publicly available so others don’t have to go through the same trouble.

    I would strongly recommend you not to use any file from any source which are not trustworthy in your opinion.

    BTW: It is Angsuman not Angusman.

    Angsuman. Gotcha ??

    I just had great success in taking all my modified files (including the plugins folder, all of it) and putting them into a folder called “upgrades”. I leave a copy of them in there on a permanent basis with the same directory structure.

    Now when I upgrade, I unzip the new WP to the desktop of my PC, then I copy the contents of “upgrade” to that folder, overwriting any existing files in there, and then upload the whole kit and kaboodle to my server.

    It was a painless up grade from the 1.5.1.2 to 1.5.1.3 where as before it was a lot of struggle.

    I’d suggest this for anyone. Of course, if you make modifications to any of the other files, you have to include those in the “upgrade” folder or it won’t work next time.

    Just a thought.

    If there’s updated code pertaining to any of those files in your “upgrades” folder though, you’ll still obviously have to modify the code in your custom files as well. Otherwise you could still be open to security issues, etc.

    Another vote for an automated upgrade here.

    Or how about providing two different downloads on the download page – a full install and the latest upgraded files?

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Automate upgrade process please !’ is closed to new replies.