Menu

WordPress 7.2 beta: 6 changes plugin and block developers should test before December 8
📰

WordPress 7.2 beta: 6 changes plugin and block developers should test before December 8

DEV Community: php·Farhan Shafi·20 days ago
#pUCoNG35
#devto#dev#wordpress#html#icons
Reading 0:00
15s threshold

WordPress 7.2 is in beta. RC1 is on November 17 and the final release is planned for December 8.

The WordPress Developer Blog published its October "What's new for developers?" roundup. Most of it is new features. These six items are different: they can change how your existing plugin or block behaves. Only one of them is a plain deprecation.

1. wp_kses() on the HTML API

WordPress is rebuilding its HTML sanitizer on top of the HTML API. The new parser normalizes output, strips the contents of script and style elements, and rejects some malformed SVG, MathML and comments. This is targeted for 7.2 or 7.3.

What to check: any code that stores or compares sanitized HTML, especially SVG and inline markup. The filter wp_kses_force_legacy_parser restores the old behavior, but the Developer Blog calls it a stopgap. Breakage should be reported on Trac ticket 66208.

2. NO_BACKSLASH_ESCAPES is gone from the wpdb session

wpdb now strips NO_BACKSLASH_ESCAPES from WordPress's own database session.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.