Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#20255 closed enhancement (duplicate)

Remove from _wp_link_page() the making of the link

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

Description

There is complex aim in _wp_link_page() function. There is a link and URL generation in the only function. There is no ability to get URL for next or previous page of the post if it needed.
Propose to create new function where URL for some page of the post will be generated. Or make it in the wp_link_pages().

Change History (2)

#1 @egorpromo
13 years ago

function _wp_link_page( $i ) {
 //some code here
	return '<a href="' . esc_url( $url ) . '">';
}

There is no ability to get $url from template files

#2 @scribu
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.