Skip to content

Instantly share code, notes, and snippets.

@zachwright
Last active December 3, 2019 16:02
Show Gist options
  • Save zachwright/d6486d23a26bda16af8b32a3ec2025a3 to your computer and use it in GitHub Desktop.
Save zachwright/d6486d23a26bda16af8b32a3ec2025a3 to your computer and use it in GitHub Desktop.

WordPress Upgrade/Plugin Updates

  • Checkout new branch
  • Set up local dev site
  • If project has Composer, run composer update
  • Else manually update plugins

Updating plugins/WordPress version manually

  • add define('FS_METHOD', 'direct'); to wp-config.php
  • locally, run sudo chown -R www {{wordpress_root_folder}}
  • Go to /wp-admin and have WordPress update the plugins and WordPress Version
  • When done, run sudo chown -R $(whoami) {{wordpress_root_folder}} (git doesn't track file owners, but git can't commit if you don't own folder)
  • Remove define('FS_METHOD', 'direct'); from wp-config.php (wp-config.php is in .gitignore)

Quirks

Make sure to check if your site is cached!!!

  • If localhost is redirecting to staging or prod after a database dump, CHECK THE BROWSER CACHE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment