Make WordPress Core

Ticket #46667: 46667.diff

File 46667.diff, 730 bytes (added by dimadin, 6 years ago)
  • src/wp-includes/link-template.php

    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 ) { 
    22482248         * Filters the page number link for the current request.
    22492249         *
    22502250         * @since 2.5.0
     2251         * @since 5.2.0 Added the `$pagenum` argument.
    22512252         *
    2252          * @param string $result The page number link.
     2253         * @param string $result  The page number link.
     2254         * @param int    $pagenum Page ID.
    22532255         */
    2254         $result = apply_filters( 'get_pagenum_link', $result );
     2256        $result = apply_filters( 'get_pagenum_link', $result, $pagenum );
    22552257
    22562258        if ( $escape ) {
    22572259                return esc_url( $result );