How To Easily Fix The WordPress 5.5 Update Breaking Your Site

If You Recently Updated To Wordpress 5.5 and Found Your Site Broken, Don't Worry. It's Really Easy To FIx. Here's How In Under 5 Minutes.
Alpha Insights

Boost Your ROAS.

Connecting WooCommerce Orders To Your Ad Campaigns Is Just The Beginning...

WooCommerce Cost Of Goods Order Profit Reports

I Updated My WordPress Site To 5.5 And Now My Website Is Broken, How Do I Fix It?

It’s actually really easy to fix.

The reason it broke is that the new WordPress 5.5 update came with a new version of jQuery (a javascript library) which no longer contains certain functions. 

This means that if your website uses any of these functions, it will basically fail as they no longer exist.

Okay, So How Do I Fix The 5.5 Update?

There is another jQuery library called jQuery Migrate, this normally bridges the gap between these missing functions.

In WordPress 5.5, they didn’t include this so you just need to add this back in and you’re good to go!

Method 1: Fix The WordPress 5.5 Update With A Plugin

As always, there’s a plugin that will solve that problem.

If you would like to do it that way, download and install this jQuery Migrate plugin.

It’s a set and forget solution, install it and you’re done.

Method 2: Add This Code To Your functions.php

You can add the following code to your functions.php file.

This is a much more lightweight way to do it, it’s a super simple method and isn’t as thorough as the plugin so you could still run into issues.

But if you’re familiar with functions.php i’d recommend trying this first rather than getting another plugin.

If you don’t know what functions.php is i’d probably say just go with the plugins method.

[php] // Add fix to WordPress frontend add_action( ‘wp_enqueue_scripts’, ‘wpd_fix_wordpress_update’ ); // Add fix to WordPress backend add_action( ‘admin_enqueue_scripts’, ‘wpd_fix_wordpress_update’ ); // Add jQuery Migrate back in function wpd_fix_wordpress_update() { wp_enqueue_script( ‘jquery-migrate’ ); } [/php]

And That's How We Fix The WordPress 5.5 Update

Pretty dumb that we need to patch it up, but fortunately it’s pretty easy to fix.

No doubt the next WordPress update will deal with this anyway.

If you have any issues or further questions don’t hesitate to leave a comment in the comments section below!

– Chris

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Alpha Insights

Alpha Insights

The World's Most Advanced WooCommerce Reporting Plugin.

WooCommerce Cost Of Goods Order Profit Reports