Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

https://github.com/aad-wsux/cornell-alumni/blob/master/docs/updating-wordpress.md

1. Make sure master branch is current

git checkout master

git pull

2. Make a new branch for the update

This will be done in the cornell-alumni and cornell-giving git repos. Make a new branch to commit the changes to.

...

git checkout -b update20210215

3. Update the WP version in the composer.json file

This is in 4 locations. The first 3 are in the repositories section.

...

  "require": {
    "php": ">=7.1",
    "composer/installers": "~1.2.0",
    "koodimonni/composer-dropin-installer": "~1.1.0",
    "vlucas/phpdotenv": "^2.0.1",
    "johnpbloch/wordpress-core-installer": "~0.1",
*   "pantheon-systems/wordpress": "5.2.2",

...

4. Run composer update

Composer update is required to build the correct composer.lock file, which is used to build and deploy the changes.

...

5. Commit the changes

Commit the composer.json and composer.lock file changes to git and publish to both the remote repos.

...

6. Verify in multidev

Since this is handled in git, it should be possible to verify the change in multidev. This will allow testing the update before publishing to master.

...

7. Merge and Deploy

Follow pantheon processes to move the files to production.

...

Two notable exceptions are WPForms and Events Calendar Pro, which are premium plugins. The process for these plugins will be addressed at the end of this document.

 


Premium plugins

This process will allow updating of most plugins. For the premium plugins, it will require some additional steps.

...

As usual, commit the changes and note the update in git, asana, and teamhub.