[wp-trac] [WordPress Trac] #19750: Add new parameter about current page class to wp_link_pages() function
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 5 14:34:24 UTC 2012
#19750: Add new parameter about current page class to wp_link_pages() function
-------------------------+-----------------------------
Reporter: egorpromo | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Template | Version: 3.3.1
Severity: normal | Keywords:
-------------------------+-----------------------------
Function wp_link_pages() makes row links like:
{{{
<a href="http://example/?p=1">1</a> <a
href="http://example/?p=1?page=2">2</a> <a
href="http://example/?p=1?page=3">3</a>
}}}
In this case it is not obvious what page is current. Maybe it is needed to
add some class to current page. Suppose current page is 2. In this case
link for page 2 has class and html must be something like:
{{{
<a href="http://example/?p=1">1</a> <a href="http://example/?p=1?page=2"
class="current-page">2</a> <a href="http://example/?p=1?page=3">3</a>
}}}
So it is better for design and page usage.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19750>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list