AI, Development & Tech News

WordPress 7.2 is scheduled to be released on December 8 and to run on PHP 8.6; you test plugins yourself

261124 wordpress 72 php 86 cover image
Skip to table of contents
Contents 4 sections
  1. What changes with PHP 8.6 for WordPress?
  2. How many plugins are affected?
  3. What this means for you
  4. Sources

PHP 8.6 is available since November 19, 2026. WordPress 7.2 runs fully on the new version as of the fifth beta, the WordPress developers write in a post from November 23. The final version 7.2 is scheduled for release on December 8.

For website operators, half of the questions remain open. Whether your host already offers PHP 8.6 is up to the host. Whether your plugins and your theme work with it, you can only find out by testing.

What changes with PHP 8.6 for WordPress?

All known problems in the WordPress core have been fixed, according to the post. For running a website, three changes matter most. They concern font files, external storage locations, and flipped images.

Three stumbling blocks with PHP 8.6
According to the WordPress developer team, post from November 23, 2026
Change in PHP 8.6Consequence in WordPress
  • TTF font is now called font/ttfWordPress 7.2 accepts both types
  • Wrapper without stream_flush()Write operation counts as failed
  • GD 2.4.0 and negative valuesFlipped images turn black
The Imagick editor was not affected. The fix is included in WordPress 7.2.
Sources: Make WordPress Core, PHP.net

For TTF fonts, PHP 8.6 reports a new file type: font/ttf instead of font/sfnt. According to the WordPress developer team, WordPress 7.2 accepts both. Custom code that only allows the old type needs to catch up.

Plugins can write files via their own stream wrapper, that is, a self-built access layer for storage locations. If this wrapper has no stream_flush() method, PHP 8.6 treats the write operation as failed, even if all the data arrived. Images then cannot be saved. WordPress reports image_save_error. The local file system remains untouched. WordPress 7.2 now also checks this return value in the GD image editor: A failed upload to an external storage, for example via an S3 wrapper, previously counted as successful.

The most noticeable issue is a bug with flipped images. WordPress has so far flipped images in the GD editor using negative width or height values. GD 2.4.0 in PHP 8.6 turns this into a completely black image, according to the post for every image that the GD editor flips. JPEG uploads with the EXIF orientations 2, 3, and 4, which WordPress flips automatically, are also affected. The Imagick editor works differently and was spared. WordPress 7.2 now uses the function imageflip(). Whether older WordPress versions will get a fix is not stated in the post.

How many plugins are affected?

The post also gives a number: A quick search in the plugin directory yielded nearly 9,000 occurrences of the function spl_object_hash() in more than 2,300 plugins. PHP 8.6 deprecates the function. The replacement is called spl_object_id() and returns a number instead of a 32-character string. Code that stores or compares the result therefore needs adjustment.

How many of these plugins actually trigger errors is unclear.

What this means for you

It is best to switch the PHP version of your plan to 8.6 only after your site is running on WordPress 7.2. The fix for flipped images is included in 7.2, and only WordPress 7.2 is considered fully compatible according to the developer team.

  • Check under Tools, Site Health, Info which PHP version your server is currently using.
  • Test plugins and theme first on a copy of your site, with WP_DEBUG and WP_DEBUG_LOG set to true, and then read the log.
  • It is best to separate the PHP switch from the WordPress update. If an error occurs, you then know which change triggered it.
  • For plugins that offload media to external storage, ask the developers about PHP 8.6.

PHP 8.6 remains not a must for most sites for the time being. WordPress still requires at least PHP 7.4, and 7.2 does not change this minimum version.

The WordPress developer team published the post on November 23, 2026.

Sources

Comments

Register and comment.

Continue reading

You might also like

View all articles →