WordPress.org

Making WordPress.org

Opened 6 months ago

Closed 4 weeks ago

#4044 closed enhancement (fixed)

Theme Handbook: Code example display incorrectly

Reported by: mukesh27 Owned by:
Milestone: Priority: normal
Component: Handbooks Keywords: 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 6 months ago.

Download all attachments as: .zip

Change History (5)

@mukesh27
6 months ago

#1 @dd32
6 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 6 months ago by dd32 (previous) (next) (diff)

#2 @dd32
2 months ago

#4396 was marked as a duplicate.

#4 @coffee2code
4 weeks ago

  • Keywords needs-patch removed
  • Resolution set to fixed
  • Status changed from new to closed

This issue was fixed generally in [8843] via #4457. However, a number of the pages listed in the Google doc above had formatting issues resulting from partial conversion to blocks. I verified that those listed pages were fixed and fixed them if they weren't.

Feel free to reopen or open a new bug if the problem crops up again or elsewhere.

Note: See TracTickets for help on using tickets.