Opened 3 years ago

Closed 9 months ago

Last modified 2 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
Priority: normal Milestone: WordPress.org
Component: WordPress.org site Version:
Severity: major Keywords:
Cc:

Description

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

Change History (7)

  • Milestone changed from Awaiting Review to WordPress.org site
  • Owner set to otto42
  • Status changed from new to assigned
  • 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: ↓ 5   tomauger9 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...just not in Codex...

Last edited 9 months ago by tomauger (previous) (diff)

comment:5 in reply to: ↑ 4   SergeyBiryukov9 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

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

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

#21343 was marked as a duplicate.

Note: See TracTickets for help on using tickets.