[wp-trac] [WordPress Trac] #48734: Twenty Twenty: [em] tag with blank string inside ruins theme layout

WordPress Trac noreply at wordpress.org
Fri Feb 13 11:41:15 UTC 2026


#48734: Twenty Twenty: [em] tag with blank string inside ruins theme layout
-------------------------------------------------+-------------------------
 Reporter:  derlynad                             |       Owner:  audrasjb
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Bundled Theme                        |     Version:  5.3
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots has-patch 2nd-       |     Focuses:
  opinion                                        |
-------------------------------------------------+-------------------------
Changes (by ozgursar):

 * keywords:  has-screenshots has-patch needs-testing 2nd-opinion => has-
     screenshots has-patch 2nd-opinion


Comment:

 == Patch Testing Report

 Patch Tested:
 https://core.trac.wordpress.org/attachment/ticket/48734/48734.code-em-
 strong.patch

 === Environment
 - WordPress: 7.0-alpha-61215-src
 - PHP: 8.2.29
 - Server: nginx/1.29.4
 - Database: mysqli (Server: 8.4.7 / Client: mysqlnd 8.2.29)
 - Browser: Opera
 - OS: macOS
 - Theme: Twenty Twenty 3.0
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.1

 === Steps taken
 1. Activate Twenty Twenty theme
 2. Create a new post / page
 3. Insert classic block
 4. Switch to `Edit as HTML`view
 5. Type in 4 lines of text in between `<em>` tag
 6. Save and view in frontend (bug occurs - see screenshot below)
 7. Apply the patch
 8. Repeat steps 5 and 6
 9. Save and view in frontend
 10. ✅ Patch is solving the problem

 === Expected result
 - We are expecting to see text between `<em>` tags to be displayed
 properly.

 === Screenshots/Screencast with results
 Before patch (editor view)
 [[Image(https://i.imgur.com/PMgedxP.png)]]

 Before patch (frontend view)
 [[Image(https://i.imgur.com/0o8rhU7.png)]]

 After patch (editor view)
 [[Image(https://i.imgur.com/HxKqGlD.png)]]

 After patch (frontend view)
 [[Image(https://i.imgur.com/pFMQL4q.png)]]

 After patch (editor view after saving the post)
 [[Image(https://i.imgur.com/CBg2m6E.png)]]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48734#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list