Changes between Version 3 and Version 4 of Ticket #63426, comment 2
- Timestamp:
- 05/12/2025 01:24:42 PM (6 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #63426, comment 2
v3 v4 5 5 6 6 In a clean install of WordPress trunk (r60231, May 11 2025) with Twenty Twenty-Five active and no plugins, load a PHP script or post that outputs: 7 8 html9 Copy10 Edit11 7 <iframe srcdoc="<body></body>"></iframe> 12 8 Pass that HTML through wptexturize(), e.g. via: 13 14 php15 Copy16 Edit17 9 echo wptexturize( '<iframe srcdoc="<body></body>"></iframe>' ); 18 10 🐞 Observe that the output becomes: 19 20 html21 Copy22 Edit23 11 <iframe srcdoc="<body></body>” ></iframe> 24 12 —the closing quote of srcdoc is replaced with ”, corrupting the attribute. … … 29 17 ✅ wptexturize() leaves the srcdoc attribute intact, producing: 30 18 31 html32 Copy33 Edit34 19 <iframe srcdoc="<body></body>"></iframe> 35 20 When reproducing the bug (no patch applied):