General: Pass `$pagenum` argument to `get_pagenum_link` filter.
Props dimadin. Fixes #46667. Built from https://develop.svn.wordpress.org/trunk@45031 git-svn-id: http://core.svn.wordpress.org/trunk@44840 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b2e3f517e1
commit
0416de3294
|
@ -2189,7 +2189,7 @@ function adjacent_post_link( $format, $link, $in_same_term = false, $excluded_te
|
||||||
*
|
*
|
||||||
* @global WP_Rewrite $wp_rewrite
|
* @global WP_Rewrite $wp_rewrite
|
||||||
*
|
*
|
||||||
* @param int $pagenum Optional. Page ID. Default 1.
|
* @param int $pagenum Optional. Page number. Default 1.
|
||||||
* @param bool $escape Optional. Whether to escape the URL for display, with esc_url(). Defaults to true.
|
* @param bool $escape Optional. Whether to escape the URL for display, with esc_url(). Defaults to true.
|
||||||
* Otherwise, prepares the URL with esc_url_raw().
|
* Otherwise, prepares the URL with esc_url_raw().
|
||||||
* @return string The link URL for the given page number.
|
* @return string The link URL for the given page number.
|
||||||
|
@ -2249,9 +2249,10 @@ function get_pagenum_link( $pagenum = 1, $escape = true ) {
|
||||||
*
|
*
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*
|
*
|
||||||
* @param string $result The page number link.
|
* @param string $result The page number link.
|
||||||
|
* @param int $pagenum The page number.
|
||||||
*/
|
*/
|
||||||
$result = apply_filters( 'get_pagenum_link', $result );
|
$result = apply_filters( 'get_pagenum_link', $result, $pagenum );
|
||||||
|
|
||||||
if ( $escape ) {
|
if ( $escape ) {
|
||||||
return esc_url( $result );
|
return esc_url( $result );
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.2-alpha-45030';
|
$wp_version = '5.2-alpha-45031';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue