#15232 closed defect (bug) (wontfix)
Empty single quote strings are visible in the editor but not the codex frontend
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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.
- 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 ′' doesn't work either.
And heh, it does appear that the escaping trick DOES work here in Trac...just not in Codex...
comment:5
in reply to:
↑ 4
SergeyBiryukov — 9 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.
comment:7
SergeyBiryukov — 2 months ago
#21343 was marked as a duplicate.

Btw, the bug seems to happen when %%% is used, e.g. http://codex.wordpress.org/index.php?title=Function_Reference/wp_list_pages&action=edit§ion=3 vs http://codex.wordpress.org/index.php?title=Function_Reference/wp_page_menu&action=edit§ion=3