HostSEO Blog

Stories and News from IT Industry, Reviews & Tips | Technology Blog


What’s New in WordPress 5.1 (Moving PHP Forward)

  • Category : WordPress
  • Posted on : Mar 10, 2019
  • Views : 1,383
  • By : Edgardo D.

WordPress 5.1 “Betty” was officially released on February 21, 2019, and is available for download.

WordPress 5.1 is the first major release since the launch of the WordPress block editor (AKA Gutenberg) in WordPress 5.0. And while it does bring some tweaks and improvements for the block editor, the biggest new features in this release involve the WordPress Site Health project and notices for PHP versions.

In this post, we’ll take a look at all of the new features that might affect how you use WordPress:

  • New dashboard notice for PHP version
  • PHP version compatibility checks for plugins and themes
  • White screen of death protection
  • Improved block editor performance
  • Changes for developers

New Dashboard Notice for PHP Version

Here at HostSEO, we always recommend using the latest versions of PHP for improved performance and security.

From our benchmarks, PHP 7.3 is on average 9% faster than PHP 7.2. And If you compare PHP 7.3 to PHP 5.6, it can handle almost 3x as many requests(transactions) per second! You should always test your plugins and themes first on a staging site for compatibility. If all is good, make sure to take advantage of this free performance boost.

WordPress is now finally getting on board with pushing the latest versions of PHP with some new tools and notices to promote PHP versions and compatibility.

First up, if you’re running an outdated version of PHP on your server with WordPress 5.1, you’ll see a new dashboard widget prompting you to upgrade your PHP version.

If you host at HostSEO, there’s zero chance you will see this message because the minimum PHP version that we allow is PHP 5.6. Right now, the warning will only trigger for PHP versions under that.

We wish the WordPress team had gone with a higher version, but this is a step in the right direction. Also, if you click on the button to “Learn more about updating PHP” in the notice, the official WordPress docs do recommend PHP 7.3. ?

PHP Version Compatibility Checks for Plugins and Themes

Beyond the soft prompt in the WordPress dashboard, WordPress 5.1 also adds forced PHP compatibility checks when you go to install a new plugin or theme. This is awesome for developers!

For a while, WordPress plugins developers have been able to set a minimum PHP version required as a comment in the plugin header. However, up until now, this hasn’t done anything but show what minimum PHP version the developer is willing to support.

In WordPress 5.1, if you try to install a new plugin or theme from WordPress.org where the developer has set a minimum PHP version higher than the version on your server, you’ll see a message telling you that “This plugin doesn’t work with your version of PHP. Learn more about updating PHP.”

Additionally, you will be prevented from installing the plugin. At this time, you can get around this by manually downloading the ZIP file from the repository and installing a plugin that way. But really – just update your PHP version!

White Screen of Death Protection

WordPress 5.1 was scheduled to introduce a new feature called “fatal error protection” which would protect from the WordPress white screen of death while updating PHP.

Unfortunately, this feature was been pulled from the WordPress 5.1 release at the last minute. However, it’s for good reason.

With this protection, WordPress will recognize when a fatal error occurs and pause the offending theme or plugin in the WordPress admin dashboard so that you’ll still be able to log into the backend of your site and (hopefully) fix the problem. For less tech-savvy users, this will be a great new feature once they iron out all the problems.

If your site experiences issues while upgrading PHP versions, it will look like below on the front-end, but you should still be able to log into the backend to fix the problem.

Improved Block Editor Performance

Since the initial release of the Gutenberg block editor in WordPress 5.0, the Gutenberg team has been hard at work improving the block editor. If you remember from our annual PHP benchmarks, we found that WordPress 5.0 and 5.02 were actually slower than WordPress 4.9.8. That’s not good! Best rest assured, the WordPress core team is working on this.

There was a bit of confusion as the Gutenberg team released Gutenberg 5.1 at the same time as the core team released WordPress 5.1.

Despite the identical version numbers, WordPress 5.1 does not include Gutenberg 5.1. Instead, WordPress 5.1 includes Gutenberg 4.8.

As such, the biggest changes to the block editor in WordPress 5.1 deal with performance. Compared to WordPress 5.0, you should see faster load times in the editor and a shorter KeyPress event time.

There’s more good news, too. The block editor performance will get even better once the most recent versions of Gutenberg are merged into the core – you can see a performance comparison of different Gutenberg versions below (remember – WordPress 5.1 includes Gutenberg 4.8 – so that’s where we’re at right now).

Changes for Developers

Beyond the new user-facing features above, WordPress 5.1 also packs some new features for WordPress developers.

Multisite Metadata

WordPress 5.1 adds a new database table to store metadata associated with sites. Learn more.

Cron API

The Cron API now has new functions to help with returning data. You’ll also get new filters to modify cron storage. Learn more.

New JavaScript Build Processes

WordPress 5.1 offers a new JavaScript build option. You can learn more about the specific tweaks here.

How to Update to WordPress 5.1

Since every customer’s site is different we always recommend utilizing the one-click staging environment. You can clone your live site in a matter of seconds and then test WordPress 5.1 with your existing theme and plugins to check for compatibility. You can of course also take a manual backup before updating your live site, just to be safe.

To update WordPress to 5.1 simply click on the updates icon in your WordPress admin dashboard. And click on the “Update Now” button. While your site is being updated, it will be in maintenance mode. As soon as your updates are complete, your site will return to normal.

As long as everything goes well with the update you should then see the “What’s New” screen. And that’s it! Quick and easy.

After clicking around in the dashboard you will also receive a message to update your database to the newest version. Simply click on the “Update WordPress Database” button and you’re good to go.

Troubleshoot Issues with WordPress Update

Whenever people update a major version of WordPress, there are always some that experience issues, and that is due to the thousands of different plugins and themes currently co-existing in the market. Here are a few ways to troubleshoot common issues.

  • Getting the white screen of death? This is commonly resolved by simply restarting PHP and deleting the full page cache on your WordPress site.
  • Try deactivating all your plugins to see if that fixes your issue. Then reactivate them one by one until you find which plugin might need an update from the developer.
  • Try switching over to a default WordPress theme, such as Twenty Nineteen. If this fixes your problem, you might want to reach out to your theme developer.
  • Troubleshoot and diagnose JavaScript issues in your browser.

Summary

While there aren’t any big front-facing features in this release, WordPress 5.1 adds some great features to push for healthier WordPress sites.

The focus on PHP versions will hopefully push the large percentage of WordPress users running out-of-date PHP versions to update to more recent versions, and the block editor performance improvements are much welcomed.

What do you think of WordPress 5.1? Does anything catch your eye? Anything you wish they would’ve included?

 

Subscribe Now

10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!

Archive Calendar

SatSunMonTueWedThuFri
 12
3456789
10111213141516
17181920212223
24252627282930

Born in 2004 ... Trusted By Clients n' Experts

SEO Stars

They never made me feel silly for asking questions. Help me understand how to attract more people and improve my search engine ranking.

Read More

Emily Schneller Manager at Sabre Inc
SEO Stars

Took advantage of Hostseo's superb tech support and I must say, it is a very perfect one. It is very fast, servers reliability is incredible.

Read More

Leena Mäkinen Creative producer
SEO Stars

We're operating a worldwide network of servers with high quality standards requirements, we’ve choose hostseo to be our perfect partner.

Read More

Ziff Davis CEO at Mashable
SEO Stars

It’s very comfortable to know I can rely about all technical issues on Hostseo and mostly that my website and emails are safe and secured here.

Read More

Isaac H. Entrepreneur
SEO Stars

With hostseo as a hosting partner we are more flexible and save money due to the better packages with great pricing, free SEO n' free SSL too!

Read More

Madeline E. Internet Professional