WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#20255 closed enhancement (duplicate)

Remove from _wp_link_page() the making of the link

Reported by: 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)

comment:1 egorpromo2 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

comment:2 scribu2 years ago

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