[wp-trac] [WordPress Trac] #56747: Twenty Seventeen: Image Block captions are Italic on frontend but not in editor

WordPress Trac noreply at wordpress.org
Sat Jan 14 20:23:59 UTC 2023


#56747: Twenty Seventeen: Image Block captions are Italic on frontend but not in
editor
-------------------------------------------------+-------------------------
 Reporter:  domainsupport                        |       Owner:  audrasjb
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  6.2
Component:  Bundled Theme                        |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-         |     Focuses:  css
  screenshots                                    |
-------------------------------------------------+-------------------------
Changes (by bgoewert):

 * keywords:  has-patch needs-testing => has-patch needs-testing has-
     screenshots


Comment:

 == Test Report

 Patch tested: 56747.2.patch

 === Environment
 * OS: Pop!_OS 22.04
 * Web Server: Docker-Desktop & wordpress-develop
 * PHP: 7.4.33
 * WordPress: 6.2-alpha-54642-src
 * Browser: Chrome 109, Firefox 108
 * Theme: Twenty Seventeen
 * Active Plugins: none

 === Actual Results

 - ✅ Image caption appears italic in the editor.

 === Additional Notes
 - I used the HTML editor (Edit as HTML) to add `cite` and `i` to the
 caption.
 - Enabling italics using the editor controls only applies to the
 `unmodified` and `em` portions of the caption, as expected. See figures 5
 and 6.

 === Supplemental Artifacts
 ''Figure 1: Front-end before patch.''
 [[Image(https://i.imgur.com/iioD2b5.png)]]

 ''Figure 2: Editor before patch.''
 [[Image(https://i.imgur.com/L2EpYZx.png)]]

 ''Figure 3: Front-end after patch.''
 [[Image(https://i.imgur.com/cRwPVud.png)]]

 ''Figure 4: Editor after patch.''
 [[Image(https://i.imgur.com/jq80SnJ.png)]]

 ''Figure 5: After enabling italics for the whole caption. Italicization is
 reversed. This displayed the same on the front-end.''
 [[Image(https://i.imgur.com/DLGMb43.png)]]

 ''Figure 6: After disabling italics for the whole caption. The 'em' tags
 are removed, 'cite' and 'i' remain and reverse the italicization. This
 also displayed the same on the front-end.''
 [[Image(https://i.imgur.com/Qs8Mis5.png)]]

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


More information about the wp-trac mailing list