WordPress 7.0.1 Minor Maintenance Release Fixes 31 Bugs, Including PHP 8.5 Compatibility and wp_kses Issue
Bump WordPress to 7.0.1, test PHP 8.5 compatibility, and verify wp_kses output to avoid style="" bugs.
Upgrade to WordPress 7.0.1, run PHP 8.5 tests, and validate wp_kses output on your sites
Summary
WordPress released version 7.0.1, a minor maintenance release that addresses 31 bugs. The release includes a fix for PHP 8.5 compatibility in a core function that returns the URL and dimensions of an image attachment. It also resolves a bug in wp_kses(), a function that filters HTML and CSS to prevent malicious code, which could generate an invalid style="" attribute. The release contains no new developer‑facing APIs, no performance improvements, and no security fixes. It does not change how WordPress works or add high‑importance features. The article notes that the release is typical for a WordPress maintenance release and that the two highlighted fixes are the most interesting. WordPress 7.0.1 is a drama‑free update that improves PHP 8.5 compatibility and sanitization.
The PHP 8.5 compatibility fix addresses a bug that could cause image attachment URLs to be returned incorrectly. The wp_kses bug fix prevents the generation of an invalid style attribute that could potentially allow malicious code to be stored or displayed. The article emphasizes that the release is a routine maintenance update with no breaking changes.
Overall, WordPress 7.0.1 improves core stability and security sanitization without adding new features or breaking existing functionality.
Key changes
- 31 bugs fixed, including PHP 8.5 compatibility issue in image attachment URL/dimensions function
- Bug in wp_kses() that could generate invalid style="" attribute fixed
- No new developer APIs or performance improvements
- No security patches included
- Minor maintenance release, no breaking changes
- Version 7.0.1 released on 2026‑??
- Fixes improve content sanitization and image URL handling
- No changes to WordPress core functionality