SlideShare a Scribd company logo
1 of 38
Download to read offline
HOW TO UPDATE
WORDPRESS SAFELY
BOULDER WP MEETUP
@ASKWPGIRL
NOVEMBER 2, 2015
WHEN TO
UPDATE
ALL THE TIME!
HOW OFTEN DO YOU NEED TO UPDATE
• The longer you wait to update, the
harder it will be.
• Updates can be critical for security.
• Updates can be critical for
functionality (e.g. to work with
latest WordPress version)
• Read changelogs for important
notes, like if major functionality
changes requiring you to update
template files or styles.
MANAGE SITES
• Use tool to manage multiple sites, otherwise, updates are too
time consuming:
• Jetpack
• iControlWP*
• InfiniteWP
• MainWP
• ManageWP
• With site management, you can update ALL plugins across ALL
sites quickly! Good for patches, which majority of updates are.
CREATING STAGING
ENVIRONMENT
USING DESKTOPSERVER - $99.95
CREATE A STAGING SITE LOCALLY
• Backup using BackupBuddy, BackWPUp, or Duplicator plugin
• Choose Zip archive with DesktopServer Pro. Done!
USING WP STAGING PLUGIN - $0
CREATE A STAGING SITE IN SUBFOLDER
• Works on non-managed, 

shared hosting accounts.
USING MANAGED WORDPRESS HOSTING
CREATE A STAGING SITE
• WP Engine, Get Flywheel, and SiteGround provide one-click
staging environments.
https://www.siteground.com/tutorials/staging/create-staging.htm
USING WP STAGECOACH - $4/MONTH/SITE
CREATE A STAGING SITE REMOTELY
• https://wpstagecoach.com/
• Create a staging copy of your
live site with one click.
• Copy changes from your
staging site back to your live
site.
• Choose which changes to
import. You can import some
or all of your file changes,
and/or your database
changes.
BACKING UP
SITE
BACKUP VIA PLUGIN
• BackWPUp - Free plugin, lots of options for scheduling and sending to
remote location.
• Duplicator - Pro version can be used for scheduling backups. Free
version for duplicating the site quickly. Great for migrations.
• BackupBuddy - Paid plugin. Great for scheduling and migrations.
• UpDraftPlus - Similar to BackWPUp - paid remote backups.
• Not all hosts will work well - might need to enable alternate cron in
wp-config.php file: http://ithemes.com/codex/page/
BackupBuddy:_Frequent_Support_Issues#HTTP_Loopback_Connections_Disabled
• Keep backups reasonable size! Exclude large files and uploads folders.
BACKUP VIA SERVICE
• Can be more reliable because not relying on PHP to run.
• WorpDrive - my personal favorite. Great pricing. Has test
restores, so you can be sure your backups really are working!
• VaultPress - great option by Automattic.
UPDATING
PLUGINS
ORDER OF OPERATIONS
UPDATE STRATEGIES
1. Update plugins first. Replace old plugins.
2. Update theme.
3. Update WordPress core.
4. If okay on staging, can do the same on live or deploy staging files
to live (depending on staging environment).

• Can do patch (bug fix updates) live.
• Good to have backup just in case.
• Have FTP/SFTP/shell and cPanel access handy.
PATCHES, UPDATES, UPGRADES
UNDERSTANDING SOFTWARE VERSIONING
• Sequence-based identifiers are used to convey the significance of
changes between releases
• 4.3 to 4.3.1 - typically bug patch, fix - just do it!
• 4.3.1 to 4.4 - usually update to functionality - read changelog
• 4.4 to 5.0 - is major change to software - test thoroughly
• Read change logs: http://wordpress.org/plugins - find your plugin.
Click Changelog tab.
JUST UPDATE THESE - DON’T WORRY, BE HAPPY!
EXAMPLE PATCHES
CHECK CHANGELOG
EXAMPLE UPDATES
• Beware the COMPLETE CODE CLEANUP. This will break your site.
READ CHANGELOG
NEW FEATURES = 

MANY FIXES
• Example of WooCommerce 2.4
release followed by immediate
patch fixes.
• Update to new version IF you
need a new feature.
• Okay to wait a short while for
immediate bug fixes.
• Always update if security patch!
• Always do the patches!
USE LICENSE KEYS
UPDATING PREMIUM PLUGINS
• Always enter license key for premium plugins.
• Purchase premium plugins even if bundled with theme. Theme
developers may be slow to update their bundled plugins.
CHOOSING PLUGINS
• Use the least number of plugins you need.
• Use the more popular plugins.
• Pay for plugins! Plugins with Pro option will have
better longevity.
• Donate to your free plugin developer.
• Use plugins by developers with good reputation
and previous experience.
• Check support tab.
• Don’t use old plugins!!!!
PLUGIN TEMPLATE/STYLE UPDATES
• If plugin uses customizable templates (e.g. WooCommerce,
NextGEN Gallery, The Events Calendar), compare child theme
templates to update plugin templates.
• Plugin may have moved, deleted, or renamed the stylesheets and
templates you have mirrored in your child theme.
UPDATING
THEMES
BEST PRACTICES
UPDATING THEMES
• Use Child Theme - https://codex.wordpress.org/Child_Themes
• If no child, use Jetpack’s Custom CSS module to make style
changes
• Read changelog to see if major update or just patch
• Compare modified child theme files to parent theme after update
• Export theme options if possible before updating
• Note: If a theme name changes, all options will be reset to default
• Some updates are BIG and require recreating parts of the site -
time these for site redesign
ENTER LICENSE KEY
PREMIUM THEMES
• If Envato theme or plugin doesn’t have license area, install the
Envato WordPress Toolkit plugin and enter your user name and
API key.
DOWNLOAD/UPLOAD
MANUALLY UPDATING PARENT THEME
• If no way to auto update theme, then download latest version
from developer
• Download a copy of your current theme for backup
• Upload the new version of the theme to the theme’s folder
• Be sure to OVERWRITE the older theme — don’t have two copies
CHANGES TO NOTE
• Updated theme may use new shortcodes.
• Updated theme may use new HTML, so you’ll need to update your
stylesheet selectors.
• Updated theme may have changed location of template files, so
you’ll need to make sure to match your child theme files to the
parent.
• Update theme may have new theme options.
UPDATING WP
CORE
JUST DO IT!
UPDATING WORDPRESS
• Do all patch/security updates immediately - no need for staging,
e.g. 4.3 to 4.3.1.
• Major version numbers - okay to wait a little bit, e.g. 4.3 to 4.4, to
be sure your plugins have been updated for it.
• Test major version updates in staging to be sure plugins and
themes play well.
IF UPDATE FAILS OR CAN’T UPDATE
• Download core files from WordPress.org.
• Unzip archive.
• Copy all files over EXCEPT wp-content
folder. Replace whatever is existing.
UPGRADING DATABASE TABLES
• After major WP update, you will likely need to visit your site’s
Dashboard and will be prompted to update the database tables.
TROUBLE-
SHOOTING
101
WHAT IS TROUBLESHOOTING?
• Identify variables
• Eliminate variables
• Variables include:
• Hosting - MySQL and PHP versions (and Apache)
• Themes and plugins
• WordPress core
• Modifications made to your child theme
• Cache
YIKES!
TROUBLESHOOTING PLUGIN UPDATES
• If white screen of death, rename plugins folder to plugins-old
• Login to Dashboard and go to plugins page - all plugins will show
as de-activated
• Rename plugins folder back to plugins
• Activate plugins one at a time
• See if issue is repeatable using TwentyFifteen theme
REINSTALLING SUBVERSION
• Find plugin on wordpress.org >
click Developers tab
• Download previous version
• De-activate and delete the
broken version on your site
• Upload and activate the old,
working version
• NOT a long-term solution!
GENERAL TROUBLESHOOTING
• Edit your wp-config.php file in the public_html (or WordPress
install directory) and change the line define(‘WP_DEBUG’, false);
to define(‘WP_DEBUG’, true);
• Install Query Monitor plugin to check for PHP errors as well as
check environment:
HTTPS://WORDPRESS.ORG/ABOUT/REQUIREMENTS/
WORDPRESS REQUIREMENTS
• WordPress recommend your host supports:
• PHP version 5.6 or greater - may need to update PHP
• MySQL version 5.5 or greater - may need to update DB
• Apache or Nginx are most robust and feature-rich server
environment
• WordPress works with PHP 5.2.4+ and MySQL 5.0+, but some
plugins might not.
• Time for a new host?
CLEAR YOUR CACHE
• Clear your WordPress cache via your plugin settings
• Clear your server cache at web host (WP Engine, SiteGround, etc.)
• Clear your Cloudflare cache
• Clear your browser cache
RESOURCES
• http://askwpgirl.com/updating-wordpress-plugins-themes-core/
• https://codex.wordpress.org/Updating_WordPress
• Sign up at wordpress.org to always get the latest news from WP
• Sign up for sucuri.net emails to get latest security news
• Submit your site to Google Search Console: http://askwpgirl.com/
submitting-wordpress-site-google-webmaster-tools/
• Optimize your database: http://askwpgirl.com/optimize-wordpress-
mysql-database/
@askwpgirl - http://askwpgirl.com
Angela Bowman, Boulder, CO

More Related Content

What's hot

Maximize the power of OSGi in AEM
Maximize the power of OSGi in AEM Maximize the power of OSGi in AEM
Maximize the power of OSGi in AEM ICF CIRCUIT
 
Creating Local WordPress Installs
Creating Local WordPress InstallsCreating Local WordPress Installs
Creating Local WordPress Installsmcgaritydotme
 
Keeping Your Joomla! Site Secure
Keeping Your Joomla! Site SecureKeeping Your Joomla! Site Secure
Keeping Your Joomla! Site Securejoomladayhouston
 
Ryan king wp-plugin-presentation
Ryan king wp-plugin-presentationRyan king wp-plugin-presentation
Ryan king wp-plugin-presentationRyan King
 
Plug Ins For the People
Plug Ins For the PeoplePlug Ins For the People
Plug Ins For the PeopleGeoff Campbell
 
How to make your Webpack builds 10x faster
How to make your Webpack builds 10x fasterHow to make your Webpack builds 10x faster
How to make your Webpack builds 10x fastertrueter
 
WordPress 4.0 - What's New
WordPress 4.0 - What's NewWordPress 4.0 - What's New
WordPress 4.0 - What's NewWP Australia
 
WordPress Acceptance Testing, Solved!
WordPress Acceptance Testing, Solved!WordPress Acceptance Testing, Solved!
WordPress Acceptance Testing, Solved!Taylor Lovett
 
CakePHP at a Massive Scale on a Budget
CakePHP at a Massive Scale on a BudgetCakePHP at a Massive Scale on a Budget
CakePHP at a Massive Scale on a Budgetandygale
 
Increasing Traffic Through Optimization : The Importance of Site Speed
Increasing Traffic Through Optimization : The Importance of Site SpeedIncreasing Traffic Through Optimization : The Importance of Site Speed
Increasing Traffic Through Optimization : The Importance of Site SpeedTerell Moore
 
15 ways to improve your word press website performance in 30 minutes
15 ways to improve your word press website performance in 30 minutes 15 ways to improve your word press website performance in 30 minutes
15 ways to improve your word press website performance in 30 minutes World Web Technology Pvt Ltd
 
Tech talk live alfresco add ons
Tech talk live alfresco add onsTech talk live alfresco add ons
Tech talk live alfresco add onsAlfresco Software
 
WP-CLI: WordCamp NYC 2015
WP-CLI: WordCamp NYC 2015WP-CLI: WordCamp NYC 2015
WP-CLI: WordCamp NYC 2015Terell Moore
 
Overcome-3-common-aem-delivery-challenges
Overcome-3-common-aem-delivery-challengesOvercome-3-common-aem-delivery-challenges
Overcome-3-common-aem-delivery-challengesiCiDIGITAL
 
Developing Locally with WordPress: No More Cowboy Coding
Developing Locally with WordPress: No More Cowboy CodingDeveloping Locally with WordPress: No More Cowboy Coding
Developing Locally with WordPress: No More Cowboy CodingMatt Banks
 
Wordcamp Raleigh Multimedia: Photos, Video, and Podcasting
Wordcamp Raleigh Multimedia: Photos, Video, and PodcastingWordcamp Raleigh Multimedia: Photos, Video, and Podcasting
Wordcamp Raleigh Multimedia: Photos, Video, and PodcastingDigital Strategy Works LLC
 
Word press as your company website
Word press as your company websiteWord press as your company website
Word press as your company websiteKelli Wise
 
My Database Skills Killed the Server
My Database Skills Killed the ServerMy Database Skills Killed the Server
My Database Skills Killed the ServerColdFusionConference
 
AEM Communities 6.1 - MongoSV '15
AEM Communities 6.1 - MongoSV '15AEM Communities 6.1 - MongoSV '15
AEM Communities 6.1 - MongoSV '15Kevin Nennig
 

What's hot (20)

Maximize the power of OSGi in AEM
Maximize the power of OSGi in AEM Maximize the power of OSGi in AEM
Maximize the power of OSGi in AEM
 
Locking Down CF Servers
Locking Down CF ServersLocking Down CF Servers
Locking Down CF Servers
 
Creating Local WordPress Installs
Creating Local WordPress InstallsCreating Local WordPress Installs
Creating Local WordPress Installs
 
Keeping Your Joomla! Site Secure
Keeping Your Joomla! Site SecureKeeping Your Joomla! Site Secure
Keeping Your Joomla! Site Secure
 
Ryan king wp-plugin-presentation
Ryan king wp-plugin-presentationRyan king wp-plugin-presentation
Ryan king wp-plugin-presentation
 
Plug Ins For the People
Plug Ins For the PeoplePlug Ins For the People
Plug Ins For the People
 
How to make your Webpack builds 10x faster
How to make your Webpack builds 10x fasterHow to make your Webpack builds 10x faster
How to make your Webpack builds 10x faster
 
WordPress 4.0 - What's New
WordPress 4.0 - What's NewWordPress 4.0 - What's New
WordPress 4.0 - What's New
 
WordPress Acceptance Testing, Solved!
WordPress Acceptance Testing, Solved!WordPress Acceptance Testing, Solved!
WordPress Acceptance Testing, Solved!
 
CakePHP at a Massive Scale on a Budget
CakePHP at a Massive Scale on a BudgetCakePHP at a Massive Scale on a Budget
CakePHP at a Massive Scale on a Budget
 
Increasing Traffic Through Optimization : The Importance of Site Speed
Increasing Traffic Through Optimization : The Importance of Site SpeedIncreasing Traffic Through Optimization : The Importance of Site Speed
Increasing Traffic Through Optimization : The Importance of Site Speed
 
15 ways to improve your word press website performance in 30 minutes
15 ways to improve your word press website performance in 30 minutes 15 ways to improve your word press website performance in 30 minutes
15 ways to improve your word press website performance in 30 minutes
 
Tech talk live alfresco add ons
Tech talk live alfresco add onsTech talk live alfresco add ons
Tech talk live alfresco add ons
 
WP-CLI: WordCamp NYC 2015
WP-CLI: WordCamp NYC 2015WP-CLI: WordCamp NYC 2015
WP-CLI: WordCamp NYC 2015
 
Overcome-3-common-aem-delivery-challenges
Overcome-3-common-aem-delivery-challengesOvercome-3-common-aem-delivery-challenges
Overcome-3-common-aem-delivery-challenges
 
Developing Locally with WordPress: No More Cowboy Coding
Developing Locally with WordPress: No More Cowboy CodingDeveloping Locally with WordPress: No More Cowboy Coding
Developing Locally with WordPress: No More Cowboy Coding
 
Wordcamp Raleigh Multimedia: Photos, Video, and Podcasting
Wordcamp Raleigh Multimedia: Photos, Video, and PodcastingWordcamp Raleigh Multimedia: Photos, Video, and Podcasting
Wordcamp Raleigh Multimedia: Photos, Video, and Podcasting
 
Word press as your company website
Word press as your company websiteWord press as your company website
Word press as your company website
 
My Database Skills Killed the Server
My Database Skills Killed the ServerMy Database Skills Killed the Server
My Database Skills Killed the Server
 
AEM Communities 6.1 - MongoSV '15
AEM Communities 6.1 - MongoSV '15AEM Communities 6.1 - MongoSV '15
AEM Communities 6.1 - MongoSV '15
 

Viewers also liked

Testes de Performance - Drupal camp Florianópolis
Testes de Performance - Drupal camp FlorianópolisTestes de Performance - Drupal camp Florianópolis
Testes de Performance - Drupal camp FlorianópolisHandrus Nogueira
 
The Ural Conservatoire
The Ural Conservatoire The Ural Conservatoire
The Ural Conservatoire Nadia Mezey
 
Best Practices for WordPress
Best Practices for WordPressBest Practices for WordPress
Best Practices for WordPressTaylor Lovett
 
Best Practices for WordPress in Enterprise
Best Practices for WordPress in EnterpriseBest Practices for WordPress in Enterprise
Best Practices for WordPress in EnterpriseTaylor Lovett
 
Slideshare photographer final
Slideshare photographer finalSlideshare photographer final
Slideshare photographer finalNishitMultidots
 
Slideshare videogames components
Slideshare videogames componentsSlideshare videogames components
Slideshare videogames componentsNishitMultidots
 
Slideshare psychologyofcolor final
Slideshare psychologyofcolor finalSlideshare psychologyofcolor final
Slideshare psychologyofcolor finalNishitMultidots
 
40 WordPress Tips: Security, Engagement, SEO & Performance - SMX Sydney 2013
40 WordPress Tips: Security, Engagement, SEO & Performance - SMX Sydney 201340 WordPress Tips: Security, Engagement, SEO & Performance - SMX Sydney 2013
40 WordPress Tips: Security, Engagement, SEO & Performance - SMX Sydney 2013Bastian Grimm
 

Viewers also liked (9)

How WordPress Works
How WordPress WorksHow WordPress Works
How WordPress Works
 
Testes de Performance - Drupal camp Florianópolis
Testes de Performance - Drupal camp FlorianópolisTestes de Performance - Drupal camp Florianópolis
Testes de Performance - Drupal camp Florianópolis
 
The Ural Conservatoire
The Ural Conservatoire The Ural Conservatoire
The Ural Conservatoire
 
Best Practices for WordPress
Best Practices for WordPressBest Practices for WordPress
Best Practices for WordPress
 
Best Practices for WordPress in Enterprise
Best Practices for WordPress in EnterpriseBest Practices for WordPress in Enterprise
Best Practices for WordPress in Enterprise
 
Slideshare photographer final
Slideshare photographer finalSlideshare photographer final
Slideshare photographer final
 
Slideshare videogames components
Slideshare videogames componentsSlideshare videogames components
Slideshare videogames components
 
Slideshare psychologyofcolor final
Slideshare psychologyofcolor finalSlideshare psychologyofcolor final
Slideshare psychologyofcolor final
 
40 WordPress Tips: Security, Engagement, SEO & Performance - SMX Sydney 2013
40 WordPress Tips: Security, Engagement, SEO & Performance - SMX Sydney 201340 WordPress Tips: Security, Engagement, SEO & Performance - SMX Sydney 2013
40 WordPress Tips: Security, Engagement, SEO & Performance - SMX Sydney 2013
 

Similar to Updating WordPress Themes, Plugins, and Core Safely

WordPress Plugins and Security
WordPress Plugins and SecurityWordPress Plugins and Security
WordPress Plugins and SecurityThink Media Inc.
 
Task runners + theming automating your workflow
Task runners + theming  automating your workflowTask runners + theming  automating your workflow
Task runners + theming automating your workflowJoshua Gilmer
 
EECI 2010: Upgrading to EE 2
EECI 2010: Upgrading to EE 2EECI 2010: Upgrading to EE 2
EECI 2010: Upgrading to EE 2ryanirelan
 
Update Smart: Use a Staging Site!
Update Smart: Use a Staging Site!Update Smart: Use a Staging Site!
Update Smart: Use a Staging Site!Meagan Hanes
 
wp-config Tips and Tricks
wp-config Tips and Trickswp-config Tips and Tricks
wp-config Tips and TricksJosh Harrison
 
Managing Multisite: Lessons from a Large Network
Managing Multisite: Lessons from a Large NetworkManaging Multisite: Lessons from a Large Network
Managing Multisite: Lessons from a Large NetworkWilliam Earnhardt
 
GlotPress aka translate.wordpress.org
GlotPress aka translate.wordpress.orgGlotPress aka translate.wordpress.org
GlotPress aka translate.wordpress.orgMarko Heijnen
 
WordCamp Kent 2019 - WP 101: Local Development - Themes and Plugins
WordCamp Kent 2019 - WP 101: Local Development - Themes and PluginsWordCamp Kent 2019 - WP 101: Local Development - Themes and Plugins
WordCamp Kent 2019 - WP 101: Local Development - Themes and PluginsJoe Querin
 
WP 101 - Local Development - Themes and Plugins
WP 101 - Local Development - Themes and PluginsWP 101 - Local Development - Themes and Plugins
WP 101 - Local Development - Themes and PluginsJoe Querin
 
WordPress Security - 12 WordPress Security Fundamentals
WordPress Security - 12 WordPress Security FundamentalsWordPress Security - 12 WordPress Security Fundamentals
WordPress Security - 12 WordPress Security Fundamentalsfindingsimple
 
Maintaining Retainers as a WordPress Developer
Maintaining Retainers as a WordPress DeveloperMaintaining Retainers as a WordPress Developer
Maintaining Retainers as a WordPress DeveloperDevinVinson
 
Building the next generation of themes with WP Rig 2.0
Building the next generation of themes with WP Rig 2.0Building the next generation of themes with WP Rig 2.0
Building the next generation of themes with WP Rig 2.0Morten Rand-Hendriksen
 
How to prevent big disasters when updating WordPress
How to prevent big disasters when updating WordPressHow to prevent big disasters when updating WordPress
How to prevent big disasters when updating WordPressRodolfo Melogli
 
WP-CLI - WordCamp Miami 2015
WP-CLI - WordCamp Miami 2015WP-CLI - WordCamp Miami 2015
WP-CLI - WordCamp Miami 2015Shawn Hooper
 
Word press sites maintenanace
Word press sites maintenanaceWord press sites maintenanace
Word press sites maintenanaceMichelle Castillo
 
appengine ja night #25 Google App Engine for PHP (English)
appengine ja night #25 Google App Engine for PHP (English)appengine ja night #25 Google App Engine for PHP (English)
appengine ja night #25 Google App Engine for PHP (English)Ryo Yamasaki
 
Production Ready WordPress #WPLDN
Production Ready WordPress #WPLDNProduction Ready WordPress #WPLDN
Production Ready WordPress #WPLDNEdmund Turbin
 
Dont Break Live lightning talk
Dont Break Live lightning talkDont Break Live lightning talk
Dont Break Live lightning talkJamie Schmid
 
Production Ready WordPress - WC Utrecht 2017
Production Ready WordPress  - WC Utrecht 2017Production Ready WordPress  - WC Utrecht 2017
Production Ready WordPress - WC Utrecht 2017Edmund Turbin
 

Similar to Updating WordPress Themes, Plugins, and Core Safely (20)

WordPress Plugins and Security
WordPress Plugins and SecurityWordPress Plugins and Security
WordPress Plugins and Security
 
Task runners + theming automating your workflow
Task runners + theming  automating your workflowTask runners + theming  automating your workflow
Task runners + theming automating your workflow
 
EECI 2010: Upgrading to EE 2
EECI 2010: Upgrading to EE 2EECI 2010: Upgrading to EE 2
EECI 2010: Upgrading to EE 2
 
Update Smart: Use a Staging Site!
Update Smart: Use a Staging Site!Update Smart: Use a Staging Site!
Update Smart: Use a Staging Site!
 
wp-config Tips and Tricks
wp-config Tips and Trickswp-config Tips and Tricks
wp-config Tips and Tricks
 
Managing Multisite: Lessons from a Large Network
Managing Multisite: Lessons from a Large NetworkManaging Multisite: Lessons from a Large Network
Managing Multisite: Lessons from a Large Network
 
GlotPress aka translate.wordpress.org
GlotPress aka translate.wordpress.orgGlotPress aka translate.wordpress.org
GlotPress aka translate.wordpress.org
 
WordCamp Kent 2019 - WP 101: Local Development - Themes and Plugins
WordCamp Kent 2019 - WP 101: Local Development - Themes and PluginsWordCamp Kent 2019 - WP 101: Local Development - Themes and Plugins
WordCamp Kent 2019 - WP 101: Local Development - Themes and Plugins
 
WP 101 - Local Development - Themes and Plugins
WP 101 - Local Development - Themes and PluginsWP 101 - Local Development - Themes and Plugins
WP 101 - Local Development - Themes and Plugins
 
WordPress Security - 12 WordPress Security Fundamentals
WordPress Security - 12 WordPress Security FundamentalsWordPress Security - 12 WordPress Security Fundamentals
WordPress Security - 12 WordPress Security Fundamentals
 
Maintaining Retainers as a WordPress Developer
Maintaining Retainers as a WordPress DeveloperMaintaining Retainers as a WordPress Developer
Maintaining Retainers as a WordPress Developer
 
Building the next generation of themes with WP Rig 2.0
Building the next generation of themes with WP Rig 2.0Building the next generation of themes with WP Rig 2.0
Building the next generation of themes with WP Rig 2.0
 
How to prevent big disasters when updating WordPress
How to prevent big disasters when updating WordPressHow to prevent big disasters when updating WordPress
How to prevent big disasters when updating WordPress
 
WP-CLI - WordCamp Miami 2015
WP-CLI - WordCamp Miami 2015WP-CLI - WordCamp Miami 2015
WP-CLI - WordCamp Miami 2015
 
Test
TestTest
Test
 
Word press sites maintenanace
Word press sites maintenanaceWord press sites maintenanace
Word press sites maintenanace
 
appengine ja night #25 Google App Engine for PHP (English)
appengine ja night #25 Google App Engine for PHP (English)appengine ja night #25 Google App Engine for PHP (English)
appengine ja night #25 Google App Engine for PHP (English)
 
Production Ready WordPress #WPLDN
Production Ready WordPress #WPLDNProduction Ready WordPress #WPLDN
Production Ready WordPress #WPLDN
 
Dont Break Live lightning talk
Dont Break Live lightning talkDont Break Live lightning talk
Dont Break Live lightning talk
 
Production Ready WordPress - WC Utrecht 2017
Production Ready WordPress  - WC Utrecht 2017Production Ready WordPress  - WC Utrecht 2017
Production Ready WordPress - WC Utrecht 2017
 

More from Angela Bowman

Creating a style guide for website using Elementor
Creating a style guide for website using ElementorCreating a style guide for website using Elementor
Creating a style guide for website using ElementorAngela Bowman
 
Using Custom Post Types and Advanced Custom Fields with Elementor
 Using Custom Post Types and Advanced Custom Fields with Elementor Using Custom Post Types and Advanced Custom Fields with Elementor
Using Custom Post Types and Advanced Custom Fields with ElementorAngela Bowman
 
Security Presentation for Boulder WordPress Meetup
Security Presentation for Boulder WordPress MeetupSecurity Presentation for Boulder WordPress Meetup
Security Presentation for Boulder WordPress MeetupAngela Bowman
 
Your WordPress Site is and is not Hacked - You don't know until you check
Your WordPress Site is and is not Hacked - You don't know until you checkYour WordPress Site is and is not Hacked - You don't know until you check
Your WordPress Site is and is not Hacked - You don't know until you checkAngela Bowman
 
Your WordPress Website Is/Not Hacked
Your WordPress Website Is/Not HackedYour WordPress Website Is/Not Hacked
Your WordPress Website Is/Not HackedAngela Bowman
 
Web designtrends 5-29-2013
Web designtrends 5-29-2013Web designtrends 5-29-2013
Web designtrends 5-29-2013Angela Bowman
 
Really Awesome WordPress Plugins You Should Know About
Really Awesome WordPress Plugins You Should Know AboutReally Awesome WordPress Plugins You Should Know About
Really Awesome WordPress Plugins You Should Know AboutAngela Bowman
 
WordPress Security Essentials
WordPress Security EssentialsWordPress Security Essentials
WordPress Security EssentialsAngela Bowman
 
WordPress Security Essentials WordCamp Denver 2012
WordPress Security Essentials WordCamp Denver 2012WordPress Security Essentials WordCamp Denver 2012
WordPress Security Essentials WordCamp Denver 2012Angela Bowman
 

More from Angela Bowman (9)

Creating a style guide for website using Elementor
Creating a style guide for website using ElementorCreating a style guide for website using Elementor
Creating a style guide for website using Elementor
 
Using Custom Post Types and Advanced Custom Fields with Elementor
 Using Custom Post Types and Advanced Custom Fields with Elementor Using Custom Post Types and Advanced Custom Fields with Elementor
Using Custom Post Types and Advanced Custom Fields with Elementor
 
Security Presentation for Boulder WordPress Meetup
Security Presentation for Boulder WordPress MeetupSecurity Presentation for Boulder WordPress Meetup
Security Presentation for Boulder WordPress Meetup
 
Your WordPress Site is and is not Hacked - You don't know until you check
Your WordPress Site is and is not Hacked - You don't know until you checkYour WordPress Site is and is not Hacked - You don't know until you check
Your WordPress Site is and is not Hacked - You don't know until you check
 
Your WordPress Website Is/Not Hacked
Your WordPress Website Is/Not HackedYour WordPress Website Is/Not Hacked
Your WordPress Website Is/Not Hacked
 
Web designtrends 5-29-2013
Web designtrends 5-29-2013Web designtrends 5-29-2013
Web designtrends 5-29-2013
 
Really Awesome WordPress Plugins You Should Know About
Really Awesome WordPress Plugins You Should Know AboutReally Awesome WordPress Plugins You Should Know About
Really Awesome WordPress Plugins You Should Know About
 
WordPress Security Essentials
WordPress Security EssentialsWordPress Security Essentials
WordPress Security Essentials
 
WordPress Security Essentials WordCamp Denver 2012
WordPress Security Essentials WordCamp Denver 2012WordPress Security Essentials WordCamp Denver 2012
WordPress Security Essentials WordCamp Denver 2012
 

Recently uploaded

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 

Recently uploaded (20)

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 

Updating WordPress Themes, Plugins, and Core Safely

  • 1. HOW TO UPDATE WORDPRESS SAFELY BOULDER WP MEETUP @ASKWPGIRL NOVEMBER 2, 2015
  • 3. ALL THE TIME! HOW OFTEN DO YOU NEED TO UPDATE • The longer you wait to update, the harder it will be. • Updates can be critical for security. • Updates can be critical for functionality (e.g. to work with latest WordPress version) • Read changelogs for important notes, like if major functionality changes requiring you to update template files or styles.
  • 4. MANAGE SITES • Use tool to manage multiple sites, otherwise, updates are too time consuming: • Jetpack • iControlWP* • InfiniteWP • MainWP • ManageWP • With site management, you can update ALL plugins across ALL sites quickly! Good for patches, which majority of updates are.
  • 6. USING DESKTOPSERVER - $99.95 CREATE A STAGING SITE LOCALLY • Backup using BackupBuddy, BackWPUp, or Duplicator plugin • Choose Zip archive with DesktopServer Pro. Done!
  • 7. USING WP STAGING PLUGIN - $0 CREATE A STAGING SITE IN SUBFOLDER • Works on non-managed, 
 shared hosting accounts.
  • 8. USING MANAGED WORDPRESS HOSTING CREATE A STAGING SITE • WP Engine, Get Flywheel, and SiteGround provide one-click staging environments. https://www.siteground.com/tutorials/staging/create-staging.htm
  • 9. USING WP STAGECOACH - $4/MONTH/SITE CREATE A STAGING SITE REMOTELY • https://wpstagecoach.com/ • Create a staging copy of your live site with one click. • Copy changes from your staging site back to your live site. • Choose which changes to import. You can import some or all of your file changes, and/or your database changes.
  • 11. BACKUP VIA PLUGIN • BackWPUp - Free plugin, lots of options for scheduling and sending to remote location. • Duplicator - Pro version can be used for scheduling backups. Free version for duplicating the site quickly. Great for migrations. • BackupBuddy - Paid plugin. Great for scheduling and migrations. • UpDraftPlus - Similar to BackWPUp - paid remote backups. • Not all hosts will work well - might need to enable alternate cron in wp-config.php file: http://ithemes.com/codex/page/ BackupBuddy:_Frequent_Support_Issues#HTTP_Loopback_Connections_Disabled • Keep backups reasonable size! Exclude large files and uploads folders.
  • 12. BACKUP VIA SERVICE • Can be more reliable because not relying on PHP to run. • WorpDrive - my personal favorite. Great pricing. Has test restores, so you can be sure your backups really are working! • VaultPress - great option by Automattic.
  • 14. ORDER OF OPERATIONS UPDATE STRATEGIES 1. Update plugins first. Replace old plugins. 2. Update theme. 3. Update WordPress core. 4. If okay on staging, can do the same on live or deploy staging files to live (depending on staging environment).
 • Can do patch (bug fix updates) live. • Good to have backup just in case. • Have FTP/SFTP/shell and cPanel access handy.
  • 15. PATCHES, UPDATES, UPGRADES UNDERSTANDING SOFTWARE VERSIONING • Sequence-based identifiers are used to convey the significance of changes between releases • 4.3 to 4.3.1 - typically bug patch, fix - just do it! • 4.3.1 to 4.4 - usually update to functionality - read changelog • 4.4 to 5.0 - is major change to software - test thoroughly • Read change logs: http://wordpress.org/plugins - find your plugin. Click Changelog tab.
  • 16. JUST UPDATE THESE - DON’T WORRY, BE HAPPY! EXAMPLE PATCHES
  • 17. CHECK CHANGELOG EXAMPLE UPDATES • Beware the COMPLETE CODE CLEANUP. This will break your site.
  • 18. READ CHANGELOG NEW FEATURES = 
 MANY FIXES • Example of WooCommerce 2.4 release followed by immediate patch fixes. • Update to new version IF you need a new feature. • Okay to wait a short while for immediate bug fixes. • Always update if security patch! • Always do the patches!
  • 19. USE LICENSE KEYS UPDATING PREMIUM PLUGINS • Always enter license key for premium plugins. • Purchase premium plugins even if bundled with theme. Theme developers may be slow to update their bundled plugins.
  • 20. CHOOSING PLUGINS • Use the least number of plugins you need. • Use the more popular plugins. • Pay for plugins! Plugins with Pro option will have better longevity. • Donate to your free plugin developer. • Use plugins by developers with good reputation and previous experience. • Check support tab. • Don’t use old plugins!!!!
  • 21. PLUGIN TEMPLATE/STYLE UPDATES • If plugin uses customizable templates (e.g. WooCommerce, NextGEN Gallery, The Events Calendar), compare child theme templates to update plugin templates. • Plugin may have moved, deleted, or renamed the stylesheets and templates you have mirrored in your child theme.
  • 23. BEST PRACTICES UPDATING THEMES • Use Child Theme - https://codex.wordpress.org/Child_Themes • If no child, use Jetpack’s Custom CSS module to make style changes • Read changelog to see if major update or just patch • Compare modified child theme files to parent theme after update • Export theme options if possible before updating • Note: If a theme name changes, all options will be reset to default • Some updates are BIG and require recreating parts of the site - time these for site redesign
  • 24. ENTER LICENSE KEY PREMIUM THEMES • If Envato theme or plugin doesn’t have license area, install the Envato WordPress Toolkit plugin and enter your user name and API key.
  • 25. DOWNLOAD/UPLOAD MANUALLY UPDATING PARENT THEME • If no way to auto update theme, then download latest version from developer • Download a copy of your current theme for backup • Upload the new version of the theme to the theme’s folder • Be sure to OVERWRITE the older theme — don’t have two copies
  • 26. CHANGES TO NOTE • Updated theme may use new shortcodes. • Updated theme may use new HTML, so you’ll need to update your stylesheet selectors. • Updated theme may have changed location of template files, so you’ll need to make sure to match your child theme files to the parent. • Update theme may have new theme options.
  • 28. JUST DO IT! UPDATING WORDPRESS • Do all patch/security updates immediately - no need for staging, e.g. 4.3 to 4.3.1. • Major version numbers - okay to wait a little bit, e.g. 4.3 to 4.4, to be sure your plugins have been updated for it. • Test major version updates in staging to be sure plugins and themes play well.
  • 29. IF UPDATE FAILS OR CAN’T UPDATE • Download core files from WordPress.org. • Unzip archive. • Copy all files over EXCEPT wp-content folder. Replace whatever is existing.
  • 30. UPGRADING DATABASE TABLES • After major WP update, you will likely need to visit your site’s Dashboard and will be prompted to update the database tables.
  • 32. 101 WHAT IS TROUBLESHOOTING? • Identify variables • Eliminate variables • Variables include: • Hosting - MySQL and PHP versions (and Apache) • Themes and plugins • WordPress core • Modifications made to your child theme • Cache
  • 33. YIKES! TROUBLESHOOTING PLUGIN UPDATES • If white screen of death, rename plugins folder to plugins-old • Login to Dashboard and go to plugins page - all plugins will show as de-activated • Rename plugins folder back to plugins • Activate plugins one at a time • See if issue is repeatable using TwentyFifteen theme
  • 34. REINSTALLING SUBVERSION • Find plugin on wordpress.org > click Developers tab • Download previous version • De-activate and delete the broken version on your site • Upload and activate the old, working version • NOT a long-term solution!
  • 35. GENERAL TROUBLESHOOTING • Edit your wp-config.php file in the public_html (or WordPress install directory) and change the line define(‘WP_DEBUG’, false); to define(‘WP_DEBUG’, true); • Install Query Monitor plugin to check for PHP errors as well as check environment:
  • 36. HTTPS://WORDPRESS.ORG/ABOUT/REQUIREMENTS/ WORDPRESS REQUIREMENTS • WordPress recommend your host supports: • PHP version 5.6 or greater - may need to update PHP • MySQL version 5.5 or greater - may need to update DB • Apache or Nginx are most robust and feature-rich server environment • WordPress works with PHP 5.2.4+ and MySQL 5.0+, but some plugins might not. • Time for a new host?
  • 37. CLEAR YOUR CACHE • Clear your WordPress cache via your plugin settings • Clear your server cache at web host (WP Engine, SiteGround, etc.) • Clear your Cloudflare cache • Clear your browser cache
  • 38. RESOURCES • http://askwpgirl.com/updating-wordpress-plugins-themes-core/ • https://codex.wordpress.org/Updating_WordPress • Sign up at wordpress.org to always get the latest news from WP • Sign up for sucuri.net emails to get latest security news • Submit your site to Google Search Console: http://askwpgirl.com/ submitting-wordpress-site-google-webmaster-tools/ • Optimize your database: http://askwpgirl.com/optimize-wordpress- mysql-database/ @askwpgirl - http://askwpgirl.com Angela Bowman, Boulder, CO