WordPress.org

Making WordPress.org

Opened 4 months ago

Last modified 42 hours 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
Cc:

Description

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 4 months ago.

Download all attachments as: .zip

Change History (4)

@mukesh27
4 months ago

#1 @dd32
4 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.

Version 2, edited 4 months ago by dd32 (previous) (next) (diff)

#2 @dd32
42 hours ago

#4396 was marked as a duplicate.

Note: See TracTickets for help on using tickets.