Make WordPress Core

Opened 14 years ago

Closed 13 years ago

Last modified 12 years ago

#15232 closed defect (bug) (wontfix)

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

Reported by: nkuttler's profile nkuttler Owned by: otto42's profile 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)

#1 @nacin
14 years ago

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

#3 @Otto42
14 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.

#4 follow-up: @tomauger
13 years 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 13 years ago by tomauger (previous) (diff)

#5 in reply to: ↑ 4 @SergeyBiryukov
13 years 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

#6 @Otto42
13 years ago

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

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

#7 @SergeyBiryukov
12 years ago

#21343 was marked as a duplicate.

Note: See TracTickets for help on using tickets.