WordPress revert to previous version

New Page

  1. Hogar
  2. Resource Center
  3. Blog
  4. WordPress updates
  5. How to Downgrade Your WordPress Site (To Fix Plugin and Theme Issues)

How to degrade the WordPress site (to fix issues with addons and themes)

Matteo Duo, April 18, 2022

How to Downgrade WordPress

30 shares

Circle

Ejecutar su instalación, complementos y tema of WordPress in the últimas versions available es a best práctica crucial for user the plataforma. We also recommend that you use the most recent version of PHP. Sin embargo, hay algunos casos en los que esto no es prudente o possible.

If you find yourself in the situation, it is possible that deba will revert an update and degrade on the WordPress site (or parte de él). Luckily, there are methods available to get back to the website element.

¿Apurado? Save this article as a PDF.

¿Cansado de desplazarse? Download a PDF version to learn more without connecting with friends more easily.

To download

This article explains why you might need to downgrade WordPress, as well as how to do it safely. We’ll cover restoring previous versions of WordPress, as well as restoring plugins, themes, and PHP.

Let’s start!

Contents

  1. Why You Might Want to Downgrade Your WordPress Version or Other Features
  2. How to Downgrade Your WordPress Site (6 Methods)

Prefer to watch the video version?

Why You Might Want to Downgrade Your WordPress Version or Other Features

Running the latest version of WordPress core (in our case, WordPress 5.5), plugins, and themes is one of the most important steps in maintaining your website. These updates often include essential security fixes to prevent malicious attacks on your site and can improve performance and functionality.

Kinsta spoiled me so much that I now demand this level of service from every provider. We also try to be at this level with our SaaS tool support.

NEW-Suganthan-Mohanadasan-150x150Suganthan Mohanadasan from @Suganthanmn View Plans

Pour cette raison, nous vous déconseillons de rétrograder définitivement WordPress ou l’un de ses composants . Cependant, il existe certaines situations dans lesquelles vous voudrez peut-être le faire temporairement.

La raison la plus courante est due à un conflit de plugin ou de thème. Si l’un des éléments de votre site n’est pas compatible avec la dernière version du noyau WordPress, par exemple, la rétrogradation de votre installation peut permettre aux visiteurs d’accéder à la fonctionnalité pendant que vous travaillez sur une solution à long terme.

(Lecture suggérée : Comment réparer « Le site rencontre des difficultés techniques. » Erreur dans WordPress).

In cases when the conflict is between two plugins, or between a plugin and your theme, downgrading WordPress itself won’t help. Instead, you’ll need to roll back the version of the plugin or theme that’s causing the problem, in order to get your site up and running again.

Additionally, some older plugins and themes may not be compatible with newer versions of PHP. If the plugin or theme in question is vital to the functionality of your site, you might want to downgrade PHP for a time while you find an alternative solution.

In short, downgrading WordPress should be a temporary troubleshooting procedure. You’ll want to plan on updating your website again once you’ve replaced the problematic plugin or theme, or otherwise addressed the issue causing a conflict on your site.

Suggested reading: here’s a curated list of the best WordPress themes and the best plugins.

How to Downgrade Your WordPress Site (6 Methods)

The process of downgrading your WordPress site will depend on what you’re trying to accomplish. You may find that you need to restore a previous version of your entire website, or that you only need to revert an individual plugin or theme rather than WordPress itself.

With that in mind, here are six different ways you might roll back your website. Each addresses a different need, so we suggest reading through all of them to see which is most applicable to your specific situation.

1. Downgrade Your WordPress Version Manually

If you’re having a serious conflict that’s preventing you from accessing the back-end of your website, manually downgrading WordPress might be your best or only option. Before you begin, you’ll want to back up your site just to be safe.

Then you need to deactivate all your plugins. It’s pretty easy if you have access to the WordPress backend. Simply check the box next to each plugin and use the bulk opt-out option :

Main deactivation of WordPress addons and backendBulk deactivation of WordPress plugins on the backend

If you don’t have access to your dashboard, you can manually disable plugins using Secure File Transfer Protocol (SFTP) and a client such as FileZilla. You’ll also need these tools for future steps, so if you’re unfamiliar with them, you might want to take a moment to learn how they work.

You will then need to download the appropriate version of WordPress. We recommend that you use the most recent version possible, which is usually the second most recent version. You can access the files you will need in the WordPress releases archive:

wordpress launch archiveThe WordPress release archive

Next, using FTP and FileZilla (or another client), navigate to your site files and delete your wp-admin  and wp-includes directories  :

remove wp includesRemove wp-admin and wp-includes via FTP

Once done, download all the files for the version of WordPress you want to install, except for the wp-content directory  . When asked if you want to overwrite the files, select Overwrite > Ok :

overwrite ftp fileOverwrite files in FileZilla

Next, navigate to the backend of your site. You may see a message asking you to update your database. If so, click the Update WordPress Database prompt  . After that, login to your site as usual.

You should now have access to and run the older version of WordPress:

downgraded wordpress installA degraded WordPress installation

At this point, you can re-enable your plugins and work on resolving the original conflict.

You can also disable automatic updates to prevent WordPress from installing another version in the meantime. When your issue is resolved, you can roll back to the latest version of WordPress from the Updates screen  in your dashboard.

2. Use WP Downgrade to Run a Previous Version of WordPress

If you are not comfortable with FTP and the idea of ​​deleting core files, there is a plugin available to downgrade WordPress. If you like this idea, go ahead and install WP Downgrade  after backing up your site :

Installing the WP Downgrade PluginInstalling the WP Downgrade Plugin

Next, go to Settings > WP Downgrade  and enter your target WordPress version in the corresponding field:

downgrade the target versionSet target WordPress version

Click Save Changes , then navigate to the Updates screen . You will see that your target version is now listed as the “latest version of WordPress”:

reinstall wordpressReinstalling WordPress 5.0

Click the Reinstall Now button  to complete the downgrade. WordPress will appear to run a normal update, then you should see the welcome message for your target version:

wordpress 5.0 welcomeThe WordPress 5.0 Welcome Message

To reinstall the latest version of WordPress after troubleshooting, you’ll need to go back to Settings > WP Downgrade . You can replace your target version with the latest update and then repeat the process detailed above.

3. Restore a previous backup to undo changes made to your site

Une autre façon de rétrograder votre site consiste à restaurer une sauvegarde à partir du moment où votre site exécutait une version antérieure de WordPress. Pour que cela fonctionne, bien sûr, vous aurez besoin d’un système de sauvegarde fiable en place.

Vous devrez également vous assurer que la copie de votre site en cours de restauration ne manque d’aucun contenu clé récemment ajouté. Vous ne voulez pas perdre par inadvertance vos derniers messages en essayant de rétrograder WordPress. Si votre site est très dynamique, ce n’est peut-être pas la meilleure voie à suivre.

If you choose to continue, the process for restoring your backup will vary depending on the system you used to create and store your files. For example, Kinsta clients can take advantage of our one-click restore process. Simply log into your MyKinsta dashboard to get started, and click Sites :

The MyKinsta DashboardThe MyKinsta Dashboard

Select the WordPress site you want to restore from the list. Then navigate to the Backups tab :

MyKinsta Site BackupsMyKinsta Site Backups

Click the Restore to drop-down menu. If you want to test backup in a staging environment, you can do so here. To downgrade your live site to the version of WordPress in the backup file, select Live :

MyKinsta Backup Restore OptionsMyKinsta Backup Restore Options

To avoid accidental restores, we need one last step before bringing your site back online. Enter the name of your website in the corresponding field, then click Restore backup  to confirm and start the process:

Restoring Backups via MyKinstaRestoring Backups via MyKinsta

Le processus de restauration peut prendre un certain temps. Une fois cela fait, vous pourrez retrouver l’accès au back-end de votre site. Nous créerons également une sauvegarde de votre site juste avant la restauration, au cas où vous auriez besoin d’annuler le processus.

4. Rétrograder manuellement un plugin ou un thème

Dans le cas où vous auriez besoin de rétrograder un plugin ou un thème au lieu du noyau WordPress, vous pouvez le faire manuellement en utilisant un processus similaire à celui de la méthode n°1. Pour commencer, vous devrez récupérer les fichiers de l’ancienne version du plugin ou du thème que vous souhaitez rétrograder.

Pour les plugins du répertoire WordPress, vous pouvez trouver des versions plus anciennes en cliquant sur Advanced View  sur la page des fonctionnalités :

plugin advanced viewThe Advanced View link on a plugin page in the WordPress directory

Scroll to the bottom of the page, then select the version you need from the drop-down menu and click Download :

plugin previous versionsUploading a previous version of a plugin via the WordPress Plugin Directory

Unzip the file and save it to your computer. Then make a backup of your site in case something goes wrong, and connect to your server using FTP and your favorite client. There, navigate to wp-content > plugins .

Next, you will need to rename the directory of the existing version of your plugin. Then download the folder of the previous version you want to downgrade to:

télécharger la version précédente du plug-inDownload an old version of a plugin via FTP

This should successfully restore the older version of the plugin you need. Plus, you’ll keep the latest version readily available, so you can come back to it when you’re ready.

Unfortunately, this method becomes more complicated for premium themes and plugins. The process for rolling them back is more or less the same, but the WordPress theme directory does not have previous versions readily available for download.

As with premium plugins, previous versions may or may not be easily accessible. If you can’t find the plugin or theme version you need, your best bet is to try contacting the developer for help.

5. Rollback Plugin and Theme Updates with WP Rollback

Fortunately, there is an easier method to downgrade plugins and themes. All you have to do is install and activate WP Rollback:

Installation du plug-in WP RollbackInstalling the WP Rollback Plugin

This plugin is regularly updated and has an impressive five-star rating in the WordPress Plugin Directory. Once it’s up and running, navigate to your plugins list  .

You will now see a Rollback button  under the title of each plugin, next to the standard options:

L'option de restauration activéeRestore option enabled

If you click on this new option, you will be redirected to a page where you can select your target version. Then select the Rollback button  to start the rollback process:

Sélection d'une version cible de restauration du plug-inSelecting a restore target version of the plug-in

Rolling back themes is just as easy. Go to Appearance > Themes  in your dashboard and select the one you want to downgrade. There will now be a Rollback button at the bottom of the window:

thème de restaurationRestoring a WordPress Theme

On the following screen, you can select your target version and initiate the downgrade process, just as you would for a plugin. When you need to restore the plugin or theme in question, you can do so from the relevant directory.

6. Revert to an Older Version of PHP

In 2019, WordPress made some changes to its PHP requirements. For this reason, as well as the many benefits of using the most recent version, upgrading your site’s PHP is always recommended.

However, some older plugins that haven’t been well maintained may not be compatible with newer versions of PHP. Ideally, you’ll always use tools that receive regular updates and support from their developers.

Cependant, si vous avez un plugin obsolète qui est crucial pour la fonctionnalité de votre site Web, mais qui ne fonctionne pas avec la dernière version de PHP, vous pouvez effectuer une rétrogradation. Les clients de Kinsta ont l’avantage de pouvoir facilement changer de version de PHP directement depuis leur tableau de bord MyKinsta.

To do this, log in to your account. Go to Sites , select the one you want to downgrade PHP for, then click the Tools tab  and scroll down to PHP Engine :

Moteur PHP dans MyKinstaPHP Engine in MyKinsta

Use the Edit drop-down menu to select the version you need:

Sélection d'une version PHP dans le tableau de bord MyKinstaSelecting a PHP Version in the MyKinsta Dashboard

In the resulting window, click Change PHP Version to start the process:

modifier php version 1Confirmation of a PHP version downgrade

If you are not a Kinsta customer, or need to install PHP with an even older version than those available through the PHP Engine feature, you will need to downgrade PHP using the command line.

This process is more advanced and carries more risk. In this case, it may be better to consider replacing the problematic plugin or theme immediately, instead of downgrading PHP and trying to resolve the conflict further.

Although not best practice, there are scenarios where you should temporarily demote #WordPress. Since there is no native method, check out this step-by-step guide on how to do it! 🔁⚙️Click to tweet the summary

Downgrading WordPress is sometimes necessary when troubleshooting your site or carrying out other key tasks. While there isn’t a native feature for accomplishing this goal, there are several methods for reverting to a previous version of your site.

This blog post covered six different ways to downgrade your WordPress site and its various elements:

  1. Downgrade your WordPress site manually.
  2. Use WP Downgrade to run a previous version of WordPress.
  3. Restore a previous backup to undo changes to your site.
  4. Manually downgrade a plugin or theme.
  5. Rollback plugin and theme updates with WP Rollback.
  6. Revert to an older version of PHP.

Do you have any questions about downgrading WordPress? Ask away in the comments section below!

Save time, costs and maximize site performance with:

  • Instant help from WordPress hosting experts, 24/7.
  • Cloudflare Enterprise integration.
  • Global audience reach with 35 data centers worldwide.
  • Optimization with our built-in Application Performance Monitoring.

All of that and much more, in one plan with no long-term contracts, assisted migrations, and a 30-day-money-back-guarantee. Check out our plans or talk to sales to find the plan that’s right for you.

Editors » Post and Page Revisions

WordPress.com autosaves your work and stores revisions for each post or page on your site. Revisions allow you to revert to an earlier version of a page or post.

Table of Contents

  1. Saving and Autosave
  2. View Revisions
  3. Compare Revisions
  4. Restore Revisions
  5. Who Can See Revisions
  6. Restore Part of a Revision
  7. Recover Lost Content on a Post or Page
  8. WP Admin Revisions

Saving and Autosave

The changes you make are automatically saved to your local device every 15 seconds and to WordPress.com about once per minute. You’ll see the notification move from Save Draft to Autosaving to Saved in the Publish Module at the top right of the editor.

The top of the WordPress Editor showing the autosaving message flashing when the page is being autosaved.

  • Autosaves are automatically enabled for all posts and pages. The feature can’t be turned off. 
  • If you have not yet published the page or post, you can save it manually by selecting Save Draft.

Autosave on Published Content

  • If you are editing a post or page that has already been published, autosave continues to work but will not overwrite the published content. 
  • The changes will not be displayed on the site until you click the Update button in the Publish module.
  • You can find the last autosave if there is one and other post revisions in the Post Revisions Module.

A revision is not stored for every autosave, just the last one the system captured.

Editing a Post/Page with an Autosave

If you go offline while editing or you accidentally navigate away from a post/page while working on it, WordPress.com will save your post to your web browser’s local storage, and you’ll see a note when you return to the editor:

A message at the top of the WordPress Editor that reads "There is an autosave of this post that is more recent than the version below." with a link to "View the autosave"

Click the X to return to the draft as-is, or View the autosave to restore the most recent autosave. You can also browse the revisions at any time to restore an earlier version of your content.

↑ Table of Contents ↑

View Revisions

When you save a draft manually or select Update, a revision is created. Revisions allow you to view the recent changes and revert to an earlier version if necessary.

WordPress.com will store the last 25 revisions for each post or page on your site if you have a free, Personal, or Premium plan. For sites on the WordPress.com Business and eCommerce plan, or the legacy Pro plan, the last 100 revisions are stored.

⚠️

The Revisions module will not show until there are revisions to view.

To restore an earlier version of a page or post:

  1. In your WordPress.com Dashboard, go to Pages or Posts.
  2. Click on the title of the post or page to edit the one you want to view revisions for.
  3. On the right side, under Page/ Post Settings, look for Revisions.

La barra lateral de Configuración de página con un resaltado alrededor del módulo Revisiones. The Revisions module will not show unless there are revisions to view.

📌

If you don’t see the Settings sidebar, click the settings icon at the top of your page. settings-icon-small-screenshot

↑ Table of Contents ↑

Compare Revisions

To view your Revisions, click on a given revision in the revisions list on the right. Alternatively, you can use your keyboard’s j and k keys for navigation. The changes in each revision will be highlighted in blue (for additions) and red (for deletions):

La pantalla Revisiones mostrando una vista de una revisión. Click for a larger view.

Clicking the Split button will allow you to view the revisions with deletions on the left and additions on the right.

La pantalla Revisiones que muestra una vista dividida que compara dos revisiones. Click for a larger view.

When you view a given revision in the Split view, it will show a comparison with the revision immediately previous to it.

↑ Table of Contents ↑

Restore Revisions

It may be challenging to read the revision since it displays in code instead of the rendered content. A couple of tricks you can use to find the correct revision:

  • Clicking Load will load the revision in the editor, which allows you to see how the content appears. However, your changes won’t be saved until you click Save Draft or Update.
  • Use the revision date above each revision listed on the right to restore a revision from a specific date.
  • You can see how many characters were added or removed in each revision under the date. The green plus indicates characters added, and the red minus indicates characters removed.

Select the desired revision to restore a previous page version, then click on the Load button at the bottom.

Clicking the Load button loads the selected revision into the editor. You will need to save the draft or Update the page to keep the changes.

Revisiones - Cargar revisión Load Revision

↑ Table of Contents ↑

Who Can See Revisions

All administrators and editors on your site can see all post revisions. In addition, authors can see post revisions for any posts they have authored (which are the only posts they’re able to view on the homepage). Finally, contributors can see post revisions on their drafts.

↑ Table of Contents ↑

Restore Part of a Revision

You can copy parts of revisions into your current page or post.

  1. Highlight the part of the revision you want to recover.
  2. Right-click and select copy or cmd+c on mac, ctrl+c on PC.
  3. Cancel to close the Revisions window and right-click, or cmd+v on mac, ctrl+v on PC to paste the part of the revision into your page or post.

💡

Copying part of a revision can be tricky, since the revision shows the HTML code as well as the text. You may want to try pasting the revision text into an HTML block, or switching a block to HTML before pasting the text.

↑ Table of Contents ↑

Recover Lost Content on a Post or Page

If you ever lose content for a post or page you were working on, the best steps are to:

  • First, check the post/page revisions.
  • Check the post or page trash sections to ensure the post/page wasn’t deleted by mistake.
  • Check your other drafts in both posts and pages to ensure you didn’t start writing a post as a page and vice versa.
  • Ensure you don’t have another post or page editor tab open. Having the editor open in multiple browser windows/tabs can cause the autosave to trigger in one tab while you’re working in a different one.
  • Ensure that autosave is working and that the post says Saved in the top right every few seconds after making changes. If not, make sure you click Save Draft manually to ensure the post or page is saving, then try clearing your browser’s cache.
  • If you’re writing a very long post within the editor itself, it’s a great idea to keep a backup by copying and pasting it onto your local computer somewhere, such as in a Word or text document.

↑ Table of Contents ↑

WP Admin Revisions

If you use the WP-Admin dashboard view, your revisions will look slightly different. However, the functionality remains the same.

El editor de revisiones de WP-Admin con el texto "Comparar revisiones de" Título del artículo "en la parte superior. WP Admin Revisions

Revisions look a little different if you’re using WP-Admin. You will still see the revisions as they’re described above, but the navigation between revisions is different. At the top of the Revisions Editor is a slider that you can use to load earlier page versions.

Click the Compare any two revisions option to compare two revisions side by side. When you compare two revisions, the selected revision is on the right, and the previous one is on the left.

Click Restore This Revision when you want to revert to a revision. This will restore the selected revision on the right. Save or update your post or page to save the revision.

Click Return to editor to return to the editor without making any revisions.

Versatile plans and pricing

  • Free

    plan-free-circle

    Best for students

  • Personal

    plan-personal-circle

    Ideal for hobbyists

  • Prime

    plan-premium-circle

    Ideal for freelancers

  • Company

    plan-business-circle

    Ideal for small businesses

Choose a package

Still confused?

Contact support.

Help us improve:

We are always looking to improve our documentation. If this page didn’t answer your question or made you want to know more, let us know! We love to hear your comments. For help, please use the forums or contact the support form. Thanks!

Last name

E-mail

Website

Δ

rollback_wordpress

How to Downgrade WordPress and Revert to a Previous Version

Updated August 18, 2022 – Simon Keating

La plupart des éditeurs de logiciels insistent sur l’importance de la mise à jour, de sorte que la rétrogradation peut sembler assez peu naturelle. Mais vous pourriez rencontrer des circonstances où vous devez revenir à une version précédente d’un programme ou d’un système d’exploitation que vous utilisez – WordPress n’est pas différent à cet égard. 

While WordPress tries to maintain backwards compatibility between versions, you might still encounter changes in a new release that cause issues for your site. In these cases, you may need to downgrade to a previous version so that your website continues to function properly while you troubleshoot any problems or wait for a bug fix to be released. 

In this article, we’ll discuss: 

  • Reasons why you might need to downgrade WordPress
  • How to downgrade WordPress manually and with a plugin
  • How to downgrade themes and plugins manually and with a plugin
  • How to upgrade or downgrade PHP versions

Before you downgrade WordPress to a previous version

Downgrading WordPress core shouldn’t be your first step when troubleshooting problems on your website. It’s not usually WordPress that is to blame when an issue arises after an update. It’s more likely to be a theme or plugin issue. 

Since WordPress updates often contain essential security fixes as well as new features, reverting to an old version of WordPress may leave your website vulnerable to hacks or cause further compatibility issues with your themes and plugins. 

Before downgrading WordPress or doing any other troubleshooting steps, make a backup of your site. If possible, you should copy your site to a staging environment and do all your troubleshooting there so as not to further disrupt any functionality on your live site. Then, before reverting to a previous version of WordPress, try other troubleshooting methods like: 

  • Deactivating all plugins and re-activating them one by one
  • Switching to a default theme like Twenty Twenty-One
  • Making sure all your plugins and themes are up to date
  • Reviewing the Common WordPress Errors and FAQ Troubleshooting guides

As a last resort, you can then try downgrading WordPress core. Just remember that downgrading WordPress should never be a permanent fix. It should only be a temporary measure while you troubleshoot and solve any problems your site is experiencing.

Reasons to downgrade WordPress

1. A WordPress update included significant changes that are not compatible with your theme or plugins

A common reason for wanting to downgrade WordPress is that an update broke a plugin or theme feature. While most problems you’ll encounter are due to an issue with a plugin or theme rather than a problem with WordPress core, sometimes there are major changes to WordPress that can cause compatibility issues with themes or plugins. 

For instance, when Gutenberg was released, there were many plugins and themes that were not compatible right away. It took some developers months, and sometimes even years, to update their code so that it was compatible with Gutenberg. A Classic Editor plugin was released that allowed users to continue to use the old WordPress editor interface, giving developers time to catch up while still allowing WordPress users to keep their version of WordPress core up to date. 

If you encounter major changes like this in new versions of WordPress, you may need to revert back to a previous WordPress version while you wait for your theme or plugins to be updated by their authors. 

2. Your site uses a theme or plugin that has been abandoned or is infrequently updated by the author

Sometimes you may run into a situation, especially with free themes and plugins, where the software is never updated to work with the latest version of WordPress. The developer may have abandoned the project or could make updates on a very infrequent basis. Over time, the theme or plugin may become incompatible with the latest version of WordPress and begin causing problems on your site. 

If the plugin you’re using is from the WordPress.org library, you can visit the plugin page and see the last version of WordPress it was tested with. If it hasn’t been tested with the latest version, you’ll see a notification at the top of the page indicating this: 

Avis de WordPress simplement un complément qui n'est pas actualisé

If this is the case, you should try disabling that plugin to see if it resolves your issue. You should also check the WordPress.org forums (located on the Support tab on the plugin’s page) to see if any other users are experiencing the issue and if there are any fixes suggested. You can also post your own forum topic to reach out to the plugin or theme author to see if they’re releasing an update soon. 

forum pour un complément de WordPress

If the plugin or theme hasn’t been updated over several WordPress version releases and you don’t get any solutions to your problems from the developer or other WordPress.org forum members, you can pretty safely assume it’s been abandoned. At this point, you’ll want to start looking for an alternative plugin or theme. 

If you have no choice but to stick with the problem plugin or theme in the short term, then consider downgrading WordPress.

3. You’re using an old version of PHP

PHP is the programming language that WordPress is written in and, like most software, it’s improved and upgraded over time. WordPress requires your web host to run at least PHP 7.4 at the time of this article’s publication. If you’re using anything below this, you may run into problems. Conversely, running a higher version may also lead to issues if plugins or themes haven’t added compatibility yet.

If your PHP version is below 7.4, you’ll want to update it to 7.4. If, for some reason, you’re not able to immediately update to 7.4, you may need to downgrade WordPress to a release that is compatible with your version of PHP until you’re able to update.

How to downgrade your WordPress site manually

If you’re comfortable using SFTP, then the manual method of downgrading your website is an option. However, using this method, it’s easy to make mistakes with catastrophic results, so be sure to have backups of your site before attempting this. Also, it’s best to implement your changes on a staging site first if at all possible.

If you’re new to using SFTP, read the “Using Filezilla” WordPress.org documentation for a full walkthrough of how to use SFTP to access your WordPress site. The documentation is specific to FileZilla, but the steps should be similar for other SFTP programs. 

1. Deactivate plugins and theme

It’s wise to deactivate your plugins and theme before downgrading your WordPress version. Make sure to activate one of the default WordPress themes like Twenty Twenty-One in place of your current theme. There are two ways to deactivate plugins and themes:

1) Deactivate plugins from the WordPress dashboard

  • Log in to your dashboard
  • Go to Plugins
  • Select all plugins
  • Choose Deactivate
  • Click Apply

désactiver les compléments de WordPress

2) Activate the Twenty Twenty-One theme from the WordPress dashboard

  • Log in to your dashboard
  • Go to Appearance Themes
  • If you have Twenty Twenty-One installed already, you can hover over the theme and then click Activate.

activer le thème Twenty Twenty-One

  • If you don’t have Twenty Twenty-One or another default WordPress theme installed, you can click WordPress.org Themes and activate Twenty Twenty-One.

3) Deactivate plugins and themes via SFTP

If you don’t have access to your WordPress dashboard, the only choice is to manually deactivate your plugins and theme. To do this, you’ll need to log in to your website via SFTP. You’ll need your SFTP credentials for your web server and an SFTP client such as FileZilla, WinSCP, or Transmit. If you aren’t sure what your login details are, then ask your web host. 

In your SFTP program, navigate to the /wp-content/plugins directory on your server and rename it to “plugins-deactivated”. 

cambiar el nombre de la carpeta del complemento a través de SFTP

By renaming the folder, WordPress will no longer be able to find your plugins and will deactivate them automatically.

In your Themes folder on your server, find your active theme and rename it to something else (e.g. yourthemename-deactivated). Since WordPress cannot find your theme, it will automatically default to a WordPress theme that is already installed. 

If you don’t have a default WordPress theme installed, you can download one from WordPress.org. It will download as a .zip file, so make sure you unzip it and upload the folder via SFTP to your themes folder on your web server.

2. Download an old version of WordPress

You can find old versions of WordPress on the official WordPress.org website. You should download the version as a .zip file and unzip it somewhere that is easy to find.

3. Prepare the files

Downgrading WordPress manually means that you’ll overwrite the new version of WordPress installed on your server with an older version. However, the downgraded version you just downloaded will contain files that you definitely don’t want to overwrite. Delete the following files from the downgraded version:

  • The wp-content folder. This folder contains your website’s media, plugins, and themes, so you want to keep your current one. Go ahead and delete this folder from the downgraded version.
  • The wp-config.php file. The wp-config.php file currently installed on your server should not be overwritten with the one from the downgraded version of WordPress. This file contains important configuration data and ensures that your WordPress installation connects to the database. This information is critical and if you overwrite it, you’ll have to find and enter all your database information back into this file before you’ll be able to access your site on the front end or through the WordPress dashboard.

4. Transfer the downgraded version of WordPress using SFTP

Before opening your SFTP application, make sure you have the downgraded version of WordPress you want to upload on your computer. Open your SFTP program and navigate to the location of the downgraded version on your computer (usually in the left pane of your SFTP software). 

On your server (usually the right pane), navigate to the public directory. This is often called public_html, www, or your site’s name. It could be named something else, but you’ll know you’re in the WordPress directory when you see the wp-config.php file and folders like wp-admin, wp-includes, and wp-content inside of it. If you’re still uncertain of the correct directory, contact your host for assitance. 

archivos resaltados en su computadora en Filezilla

Important: Double-check that you’ve removed the wp-content directory and wp-config.php file from the old version you downloaded. Do not overwrite these files. 

Now you need to drag the old WordPress files from your computer over to your web server, overwriting all of the core files, including the contents of the wp-admin and wp-includes directories. This may take a little while as it pushes and overwrites all the files.

5. Update the database

After your files have been transferred, you should be able to log back into your WordPress site to complete the last few steps of this process. You may be asked to “upgrade” your database when you log in to your site — you should proceed with this.

6. Reactivate theme and plugins

Next, you need to restore your theme and plugins. If you deactivated these from the WordPress dashboard previously, it will be a similar process to restore them. If you deactivated your plugins and theme manually, you’ll need to reactivate them manually as well. 

1) Activating your theme from the WordPress dashboard:

  • Go to Appearance Themes
  • Hover over the theme you want to activate and then click Activate.

2) Activating your plugins from the WordPress dashboard:

  • Go to Plugins
  • Select all plugins
  • Choose Activate
  • Click Apply

3) Activating your theme via SFTP

Log in to your web server via SFTP, go to wp-content/themes and rename your theme back to its original name.

Renaming the theme folder back to its original name will not automatically reactivate it, so from this point you’ll need to log into your WordPress dashboard and reactivate your theme.

4) Activating your plugins via SFTP

Log in to your web server via SFTP, go to wp-content/plugins-deactivated, and rename it back to “plugins”. This won’t automatically reactivate your plugins, but it will allow WordPress to now find and recognize them. You should now be able to log in to the WordPress dashboard and activate your plugins from the Plugins screen.

7. Deactivate automatic WordPress updates

To prevent your WordPress version from being updated again, you should deactivate automatic WordPress updates. This should only be a short-term measure while you fix any issues. To do this, log in to your website via SFTP or using your host’s control panel file manager and edit your wp-config.php file, adding the following line:

1

define( ‘AUTOMATIC_UPDATER_DISABLED’, true );

Once you’ve fixed your site issues, be sure to go back and delete this line to reactivate automatic updates. 

While this process should be pretty seamless, if you do encounter issues, simply restore a backup that you took prior to downgrading.

How to downgrade WordPress core using a plugin

If you’re currently using Jetpack to back up your WordPress site, you have a simple and risk-free way of downgrading your WordPress installation.

  1. Log in to your WordPress.com account.
  2. Go to Jetpack Activity Log.
  3. Search for the specific day or activity that you’d like to restore to.
  4. Click Restore.
  5. You’re now presented with some options of exactly what you would like to restore. In this case, you would only need to restore your “WordPress root.”
  6. Click Confirm restore.
  7. Your restore will now begin. You can follow the progress of this using the Activity Log.
  8. Once restoration is complete, it will present you with a confirmation message. Click View Site to navigate to your website.
  9. If you’re asked to upgrade your database once logged in, then proceed with this.

You should now have your WordPress installation downgraded. You may want to turn automatic WordPress updates off temporarily while you fix any issues. To do this, log in to your website via SFTP or using your host’s control panel file manager and edit your wp-config.php file, adding the following line:

1

define( ‘AUTOMATIC_UPDATER_DISABLED’, true );

Once you’ve fixed your site’s issues, be sure to go back and delete this line to reactivate automatic updates.

How to downgrade WordPress themes or plugins

There may be times where a plugin or theme update breaks your site or has bugs. While developers are usually quick to fix things, these can still leave problems on your site for hours or days while a patch is released. In this case, you may revert to a previous version of the theme or plugin. This should only be seen as a temporary solution, though, and precautions should be taken such as creating a backup before proceeding and testing it first on a staging site.

Manually downgrading WordPress themes and plugins

If you aren’t currently making regular backups of your site, you may not have the option to revert back to a previous version of a theme or plugin. In this case, you’ll need to manually retrieve and install a previous version of the problematic plugin or theme.

Depending on where you acquired the theme or plugin, you may be able to download a previous version from your account on the plugin or theme author’s website. If not, you’ll need to contact the developer and ask if they can make a previous version available to you. Once you’ve gotten the old version, you can begin the process of manually replacing the new version on your server. 

Downgrading a theme manually

To manually downgrade a theme, you’ll want to first deactivate it via SFTP. Do not delete the theme as this will delete your theme settings. You can deactivate your theme using the steps outlined in the Deactivate plugins and themes via SFTP section. 

Once you’ve deactivated your theme by renaming the folder in your SFTP application, you’ll want to upload the new theme from your computer to the themes folder on your server by dragging the folder from the left pane (your computer) to the right pane (your server).

arrastrando un thème personnalisé a su carpeta wp-content a través de SFTP

At this point, you can log into your WordPress dashboard and reactivate the downgraded version of your theme. Check that it’s working correctly before deleting the deactivated version of the theme from your server.

Downgrading a plugin manually

Manually downgrading a plugin involves the same process as manually downgrading a theme. In your SFTP program, navigate to the wp-content/plugins directory on your server and rename the problem plugin by adding “-deactivated” to the plugin’s folder name.

Drag your downgraded plugin folder from your computer (left pane) to the plugins folder on your server (right pane).

restaurer une version antigua d'un complément à través de SFTP

Log back into your WordPress dashboard and go to the Plugins screen. Select your downgraded plugin and then click Activate. Check to make sure the plugin is working as intended before deleting the deactivated version of the plugin from your server via your SFTP application.

Using Jetpack Backup to downgrade WordPress plugins and themes

If you’re already using Jetpack Backup, then you can easily restore plugins or themes to a previous point in time.

  1. Log in to your WordPress.com account.
  2. Go to Jetpack Activity Log.
  3. Search for the specific day or activity that you’d like to restore to.
  4. Click Restore.
  5. You’re now presented with some options of exactly what you would like to restore. Select WordPress Themes or WordPress Plugins (or both).
  6. Click Confirm restore.
  7. Your restore will now begin. You can follow the progress of this using the Activity Log.
  8. Once restoration is complete, it will present you with a confirmation message. Click View Site to navigate to your website.

Using WP Rollback to downgrade WordPress plugins and themes

WP Rollback is a plugin that allows you to downgrade specific plugins or themes from WordPress.org to a previous version. Unlike with Jetpack, you’ll need to handle backing up your website manually (or with a plugin) prior to using WP Rollback. 

You can still use WP Rollback with Jetpack handling backups if you want to downgrade an individual plugin. However, if you’re only using WP Rollback and not Jetpack Backup, you’ll only be able to restore previous versions of plugins from the WordPress.org libraries. You’ll have to downgrade any free or premium plugins from another source manually.

We strongly recommend that you create a backup before rolling back a plugin or theme and test this on a staging site.

Install WP Rollback

  1. Log in to your WordPress dashboard.
  2. Vaya a Complementos → Agregar nuevo y busque “revertir”.
  3. Instalar y activar WP Rollback .

le complément de WP Rollback dans la bibliothèque WP.org

Use WP Rollback para degradar complementos

  1. Vaya a Complementos , busque el complemento que desea degradar y haga clic en Revertir.
  2. Ahora se le preguntará a qué versión desea cambiar.
  3. Seleccione la versión del complemento que desee y haga clic en Revertir .
  4. Su complemento ahora se degradará. Deberá reactivar el complemento una vez que haya terminado. 

Versions du complément WP Rollback

Use WP Rollback para degradar temas

  1. Ve a Apariencia Temas y haz clic en Detalles del tema en el que te gustaría bajar de categoría. Haga clic en Revertir .
  2. Ahora se le preguntará a qué versión desea cambiar.
  3. Seleccione la versión del tema que desee y haga clic en Revertir .
  4. Su tema ahora será degradado. Si es su tema en vivo, asegúrese de que todavía esté activo después de la degradación.

Cómo actualizar/degradar la versión PHP de su sitio web

Puede haber raras ocasiones en las que necesite actualizar o degradar su versión de PHP para descartarlo como un problema en su sitio web. 

Si tiene problemas después de actualizar el núcleo de WordPress o un complemento, es posible que esté ejecutando una versión de PHP demasiado antigua. En este caso, debería considerar actualizar la versión de PHP del sitio web de WordPress . 

Es mucho menos probable que necesites cambiar a una versión anterior de PHP. Sin embargo, si decide utilizar la última versión de PHP, es posible que algunos complementos o temas no sean compatibles y sea necesario cambiar a una versión anterior.

No debe usar una versión de PHP inferior a 7.4 si es posible, ya que esta es la versión mínima recomendada actual para ejecutar WordPress.

Estas instrucciones asumen que está utilizando un host basado en cPanel. Si no está seguro, su proveedor de alojamiento debería poder ayudarlo con esto. Como siempre, realice una copia de seguridad antes de realizar cualquier cambio y pruébelo primero en un entorno de prueba.

  1. Inicie sesión en cPanel.
  2. Desplácese hacia abajo hasta Software y haga clic en MultiPHP Manager.
  3. Seleccione su nombre de dominio y use el menú desplegable para seleccionar la nueva versión de PHP.

edit PHP version in cpanel

  1. Haga clic en Aplicar para guardar los cambios. Este cambio surte efecto casi inmediatamente en la mayoría de los hosts.
  2. Navegue a su sitio web y verifique si hay errores.

Facilite las reversiones y la resolución de problemas con copias de seguridad en tiempo real 

Si bien puede degradar WordPress, así como complementos y temas manualmente, puede llevar bastante tiempo. Ser capaz de restaurar todo su sitio, un tema o solo una versión de un complemento desde una copia de seguridad hace que la resolución y solución de problemas tome mucho menos tiempo. 

Las copias de seguridad regulares no solo le permiten volver rápidamente a una versión anterior cuando una actualización sale mal, sino que también lo protegen en caso de que su sitio sea pirateado o si accidentalmente elimina algo importante. También facilitan la migración de su sitio a un nuevo host o entorno de ensayo para realizar pruebas. 

Su Proeedor de alojamiento puede proporcionar copie de security, pero es arriesgado confiar en su servidor web como la única fuente de sus copie de seguridad . Using Jetpack Backup, the best WordPress backup backup addon, offers external backup backups and backups with just one click.

Esta entrada fue publicada en Seguridad. Marks the permanent link.

Profile of Simon Keating

Simon Keating

Simon has worked in marketing and product development for over 10 years, previously at HubSpot, Workday and now Automattic (Jetpack). He has a varied background, with a degree in chemical engineering and a master’s degree in computer science to his credit. His passion is helping people and their businesses grow.

Discover the benefits of Jetpack

Discover how Jetpack can help protect, accelerate and speed up your site of WordPress.

Obtenga hasta a 60% descuento en su primer año.

Compare planes

Share this

  • Facebook
  • Twitter
  • WhatsApp
  • After
  • LinkedIn
  • E-mail
  • To print
  • pinterest
  • tumblr
  • Reddit
  • Poached

Like that:

I like loading…

Related

update_breaks_site

WordPress site broken after an update? Here’s how to fix it

Are you having problems after updating WordPress? How to determine the cause, the best ways to troubleshoot and correct errors, and how to prevent future problems.

March 22, 2022

In “Learn”

featured-image-release1

Jetpack 4.8.1: PHP version incompatibility fix

Jetpack 4.8.1 was released to address a number of issues with Jetpack 4.8 – read more for more details on these fixes.

April 5, 2017

In “Versions”

featured-image-release1

Jetpack 4.8.2: fixed other PHP version incompatibilities

Jetpack 4.8.2 fixes issues appearing in the new Jetpack Settings area, on sites running older versions of PHP.

April 8, 2017

In “Versions”


Video WordPress revert to previous version

Related Posts

Free chat room code for my website

Contents1 How to set up a free chat room on the website.2 3 comentarios2.1 Trackbacks/Pingbacks2.2 Submit a Comment Cancel reply3 How to Create a Chat Room Website…

Background image full screen css

Contents1 Cómo – Full Page Image1.1 Example1.2 Example2 CSS background image tamaño tutorial: how to codify a complete page background image3 Perfect Full Page Background Image3.1 Méthode CSS géniale,…

WordPress leverage browser caching

Contents1 Aproveche el almacenamiento in hidden del navegador1.1 Will it works for my website?1.2 Where are plugin options1.3 Some JavaScript files still display under Leverage Browser Caching1.4…

WordPress post to facebook page

Contents1 How to Automatically Post to Facebook from WordPress1.1 Download Now: How to Launch a WordPress Website [Free Guide + Checklist]1.2 1. Create an IFTTT account.1.3 2….

Download images from wordpress media library

Contents1 How to export your WordPress media library1.1 Download maintenant : How to launch a WordPress website [Free Guide + Checklist]1.2 How to export your WordPress media…

WordPress single post template

Contents1 How to Create Custom Unique Post Templates in WordPress2 Post Template Files2.1 author.php2.2 Fecha.php3 Handbook navigation4 How to Create Custom Single Post Templates in WordPress5 Video…