WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 20 months ago

Last modified 13 months ago

#15232 closed defect (bug) (wontfix)

Empty single quote strings are visible in the editor but not the codex frontend

Reported by: nkuttler Owned by: otto42
Milestone: WordPress.org Priority: normal
Severity: major Version:
Component: WordPress.org site Keywords:
Focuses: Cc:

Description

Example http://codex.wordpress.org/Function_Reference/wp_list_pages , same on all other pages I checked.

Change History (7)

comment:1 nacin3 years ago

  • Milestone changed from Awaiting Review to WordPress.org site
  • Owner set to otto42
  • Status changed from new to assigned

comment:3 Otto423 years ago

  • Resolution set to wontfix
  • Status changed from assigned to closed

Double single quote strings is wiki-markup for italics. If you need to have code in the wiki with items in it like this, wrap it in <pre></pre> code to prevent wiki markup from being used.

comment:4 follow-up: tomauger20 months ago

  • Resolution wontfix deleted
  • Status changed from closed to reopened

I don't think <pre> works in the context that @nkuttler is referring to. When putting it inside the Usage template %%% block, the <pre> is displayed. When putting the <pre> outside the %%% block, the codes for the %%% template are expanded and displayed as well. Quite ugly.

Escaping with !'' doesn't work, and surprisingly entity escaping eg with &prime;' doesn't work either.

And heh, it does appear that the escaping trick DOES work here in Trac...

Version 0, edited 20 months ago by tomauger (next)

comment:5 in reply to: ↑ 4 SergeyBiryukov20 months ago

Replying to tomauger:

When putting it inside the Usage template %%% block, the <pre> is displayed. When putting the <pre> outside the %%% block, the codes for the %%% template are expanded and displayed as well.

The workaround is to avoid %%% at all, replacing it with <pre>:
http://codex.wordpress.org/index.php?title=Function_Reference/wp_link_pages&diff=120400&oldid=120383

Related: #21343

comment:6 Otto4220 months ago

  • Resolution set to wontfix
  • Status changed from reopened to closed

Yes, just use the pre HTML, not the %%% markup.

comment:7 SergeyBiryukov13 months ago

#21343 was marked as a duplicate.

Note: See TracTickets for help on using tickets.