WordPress.org

Make WordPress Core

Ticket #36894: 36894.patch

File 36894.patch, 1.2 KB (added by sebastian.pisula, 3 years ago)
  • wp-includes/link-template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    20742074 *
    20752075 * @global WP_Rewrite $wp_rewrite
    20762076 *
    2077  * @param int  $pagenum Optional. Page ID. Default 1.
     2077 * @param int  $pagenum Optional. Page number. Default 1.
    20782078 * @param bool $escape  Optional. Whether to escape the URL for display, with esc_url(). Defaults to true.
    20792079 *                          Otherwise, prepares the URL with esc_url_raw().
    20802080 * @return string The link URL for the given page number.
     
    21322132         * Filters the page number link for the current request.
    21332133         *
    21342134         * @since 2.5.0
     2135         * @since 4.6.0 Added the `$pagenum` parameter.
    21352136         *
    21362137         * @param string $result The page number link.
     2138         * @param int  $pagenum Page number. Default 1.
    21372139         */
    2138         $result = apply_filters( 'get_pagenum_link', $result );
     2140        $result = apply_filters( 'get_pagenum_link', $result, $pagenum );
    21392141
    21402142        if ( $escape )
    21412143                return esc_url( $result );