Making WordPress.org

Opened 5 months ago

Last modified 4 weeks ago

#4044 new enhancement

Theme Handbook: Code example display incorrectly

Reported by: mukesh27 Owned by:
Milestone: Priority: normal
Component: Handbooks Keywords: needs-patch has-screenshots


In Theme Handbook article "Custom Post Type Template Files" block "Search in Custom Post Types" system shows & instead or & and > instead of > that needs to fix.

Attachments (1)

error.png (83.9 KB) - added by mukesh27 5 months ago.

Download all attachments as: .zip

Change History (4)

5 months ago

#1 @dd32
5 months ago

There seems to be a few things causing problems here.

  1. Gutenberg Classic component will convert & into & recursively upon focusing and defocusing (Second focus will convert it to &, etc)
  2. Gutenberg Classic component doesn't seem to like <code> having line breaks
  3. The code blocks now seem to need to be defined as <code>[php]...[/php]</code> rather than the <pre>[php]... as currently used.

I suspect the syntax highlighting plugin has had a change here which is what's causing the issues..

I've fixed this page manually by using the 'Edit in HTML mode' of the Gutenberg Editor (NOT edit the classic block in HTML mode) but it seems to affect a lot of the pages.

edit: 1 above appears not to be Gutenberg, but rather an interaction on the handbooks, so probably a plugin.

Last edited 5 months ago by dd32 (previous) (diff)

#2 @dd32
4 weeks ago

#4396 was marked as a duplicate.

Note: See TracTickets for help on using tickets.