Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#19750 closed enhancement (duplicate)

Add current page class to html produced by wp_link_pages() function

Reported by: egorpromo's profile egorpromo Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3.1
Component: Template Keywords:
Focuses: Cc:

Description

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.

Change History (2)

#1 @egorpromo
13 years ago

  • Summary changed from Add new parameter about current page class to wp_link_pages() function to Add current page class to html produced by wp_link_pages() function

#2 @ocean90
13 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.