Contents
- 0.1 READ ALSO
- 0.2 What is the location of the MySQL databases?
- 0.3 Top 10 Best WordPress SEO themes of 2022
- 1 Length of time needed to ensure the best possible compatibility
- 2 A “beta compatibility ” between WordPress 5.6 and PHP 8
- 3 No (yet) full compatibility between PHP 8 and the WordPress ecosystem
- 4 What versions of PHP are supported by WordPress?
During the delivery of its last major update, WordPress 5.6 “Simone”, the CMS announced that it supported PHP 8, released a few days earlier.
This is one of the great novelties of this latest version: the Core of WordPress 5.6, the last major update released on December 9, 2020, is compatible with PHP 8. Launched on November 26, the last major version of the language programming can significantly improve performance. It should therefore be noted the significant efforts made by the WordPress community to release in such a short time a new major version, 5.6 while supporting PHP 8 support. But is WordPress 5.6 really compatible with this version of PHP? What about the entire CMS ecosystem? Here are some answers.
Length of time needed to ensure the best possible compatibility
As with any release of a new version, certain malfunctions could occur, especially in the first days of its use. WordPress indeed functions as an ecosystem whose heart (the WordPress CMS itself) is the central element. A set of elements revolve around it, such as plugins, themes, but also the server software part. An update to WordPress is therefore impactful for this entire ecosystem, and it is for this reason that bugs are almost inevitable and rarely serious.
To correct the bugs resulting from a major update and thanks to the feedback from the community, it is very common for a minor update to be released in the days following a major version. Thus, the bugs inherent in the Core can be corrected quickly, thanks to the next minor versions.
For their part, developers are invited to update their themes and plugins as soon as possible, in order to ensure the continuity of their operation with the latest version of PHP. This time is therefore necessary to achieve the best possible compatibility between WordPress 5.6 and PHP 8, and to ensure that as many sites as possible can benefit from the contributions of PHP 8 in production.
A “beta compatibility ” between WordPress 5.6 and PHP 8
WordPress developer and contributor within the team dedicated to improving the Core, Jonathan Desrosiers evokes a ” beta compatible ” state to qualify the support of PHP 8 by WordPress 5.6:
The state of PHP 8 support in the larger ecosystem (plugins, themes, etc.) is impossible to know. For this reason, WordPress 5.6 should be considered “beta compatible” with PHP 8, the developer explains in a blog post.
The contributor to the WordPress Core prefers to remain on the reserve and bring this nuance, because the majority of plugins and themes, which ensure the proper functioning of sites on WordPress, do not yet all benefit from an update allowing them to be compatible with PHP 8, from the release of WordPress 5.6.
To achieve this ” beta compatible ” status , WordPress has nevertheless managed to pass all compatibility tests with flying colors.
It should also be noted that all known compatibility issues that were identified through automated testing or static analysis have been resolved (…). WordPress Core’s automated test coverage needs a lot of improvement, and some issues will require manual testing of WordPress on PHP 8 under varying conditions to be discovered, continues Jonathan Desrosiers.
No (yet) full compatibility between PHP 8 and the WordPress ecosystem
The work provided by the WordPress community made it possible to deliver on time – with a one day delay – the last major version of the CMS with support for PHP 8. But, for the time being, all versions of WordPress and everything that makes up its ecosystem is not yet compatible with the programming language update.
The goal is to elevate the larger ecosystem to a state compatible with PHP 8. This requires that the Core software not only be compatible on its own, but also provide defenses against common issues encountered when transitioning to PHP 8, while continuing to work on older versions of PHP, adds Jonathan Desrosiers.
According to the developer, the WordPress Core can therefore not yet claim full compatibility for the moment. This process should take longer to get up and running within the WordPress ecosystem.
What versions of PHP are supported by WordPress?
If WordPress 5.6 allows PHP 8 support, this is not the case for all the versions offered by the CMS. In his blog post, Jonathan Desrosiers provides an update on the versions of PHP supported by WordPress:
The current major PHP version is 7. In the last 5 years, there have been 4 feature releases for PHP 7 major version (7.1, 7.2, 7.3 and 7.4), and over 130 patch releases of security / bugs for these feature versions.
As for older versions, they remain unchanged: WordPress continues to support PHP 5.6.20 and higher.
If you want to benefit from the new features brought by PHP 8 on your site, it is strongly recommended to test your site first on a dedicated test server or locally on your computer before launching the update. Also note that if you regularly update the latest versions of PHP, your site will be less likely to encounter major malfunctions when upgrading to the new version.
To go further, you can also consult the WordPress and PHP 8 2020 compatibility report published by Yoast on the impacts of this update on the CMS.
Discussion about this post