diff --git src/wp-includes/link-template.php src/wp-includes/link-template.php
index ef604dcc7d..6e3a97f64c 100644
|
|
function get_pagenum_link( $pagenum = 1, $escape = true ) { |
2248 | 2248 | * Filters the page number link for the current request. |
2249 | 2249 | * |
2250 | 2250 | * @since 2.5.0 |
| 2251 | * @since 5.2.0 Added the `$pagenum` argument. |
2251 | 2252 | * |
2252 | | * @param string $result The page number link. |
| 2253 | * @param string $result The page number link. |
| 2254 | * @param int $pagenum Page ID. |
2253 | 2255 | */ |
2254 | | $result = apply_filters( 'get_pagenum_link', $result ); |
| 2256 | $result = apply_filters( 'get_pagenum_link', $result, $pagenum ); |
2255 | 2257 | |
2256 | 2258 | if ( $escape ) { |
2257 | 2259 | return esc_url( $result ); |