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

WordPress Trac noreply at wordpress.org
Wed Nov 20 11:43:04 UTC 2019


#48734: Twenty Twenty: [em] tag with blank string inside ruins theme layout
-----------------------------------------------+-----------------------
 Reporter:  derlynad                           |       Owner:  audrasjb
     Type:  defect (bug)                       |      Status:  accepted
 Priority:  normal                             |   Milestone:  5.3.1
Component:  Bundled Theme                      |     Version:
 Severity:  normal                             |  Resolution:
 Keywords:  has-screenshots reporter-feedback  |     Focuses:
-----------------------------------------------+-----------------------

Comment (by derlynad):

 Replying to [comment:7 audrasjb]:
 > @derlynad yes, removing those lines don't do anything, I messed up with
 my tests, sorry.
 >
 > I can reproduce the issue on every default theme, like Twenty Nineteen
 for example. It seems to happen only when editing posts made with or for
 the Block Editor. Like default posts/pages or posts/pages created with the
 default editor. It doesn't seems to happen with new posts/pages manually
 created with the Classic Editor.
 >
 > Can you reproduce that on your side?

 Yes, I can. I've tested it today, created new page in WP 5.3 in block
 editor, classic block, html mode. Here's what's happening when we enter
 preview mode in Twenty Twenty:

 https://drive.google.com/file/d/1X1q8yPGwN4-ZBZr_laPCLwo8p9GqlnK7/view

 Here's the tag transformation in the block after saving the page and
 switching to visual editing mode:

 https://drive.google.com/file/d/1wL61TWbMIrJgO34dd_HkUIaDCLg58N5v/view

 Somehow em tag was automatically closed before empty string.

 Here's how it looks like on Twenty Nineteen preview:

 https://drive.google.com/file/d/1Lbalf2_9n-nOisrX-DL0DXBbUlOCD1s8/view

 Looks like everything is OK.

 Oh, and by the way. If we change EM tag with STRONG one, the issue is the
 same, here's the screenshot:

 https://drive.google.com/file/d/1Q3nQKnIk6HcrEx3MIDcnKkOkX_uSKIRK/view

 Hope it helps.

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


More information about the wp-trac mailing list