[wp-trac] [WordPress Trac] #12247: wp_link_pages link_before link_after used wrong and not just with <a> tags
WordPress Trac
wp-trac at lists.automattic.com
Wed May 25 19:59:19 UTC 2011
#12247: wp_link_pages link_before link_after used wrong and not just with <a> tags
--------------------------+-----------------------
Reporter: openmtl | Owner:
Type: defect (bug) | Status: reopened
Priority: low | Milestone: 3.0
Component: Template | Version: 2.9.1
Severity: minor | Resolution:
Keywords: dev-feedback |
--------------------------+-----------------------
Changes (by scottcropper):
* cc: scott.cropper@… (added)
* keywords: has-patch => dev-feedback
* status: closed => reopened
* resolution: fixed =>
* severity: trivial => minor
Comment:
In testing this I've found it to work however the link before and link
after gets applied to the text and not the link. Example :
if before and after are set to a list <ul> and </ul> respectively
and link_before and link_after are set to list items <li> and </li>
respectively you end up with :
{{{
<ul>
<li>1</li>
<a href="link"><li>2</li></a>
<a href="link"><li>3</li></a>
</ul>
}}}
Rather than what I think would be expected :
{{{
<ul>
<li>1</li>
<li><a href="link">2</a></li>
<li><a href="link">3</a></li>
</ul>
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12247#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list