Make WordPress Core

Changeset 45031


Ignore:
Timestamp:
03/27/2019 02:23:24 PM (6 years ago)
Author:
SergeyBiryukov
Message:

General: Pass $pagenum argument to get_pagenum_link filter.

Props dimadin.
Fixes #46667.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r44809 r45031  
    21902190 * @global WP_Rewrite $wp_rewrite
    21912191 *
    2192  * @param int  $pagenum Optional. Page ID. Default 1.
     2192 * @param int  $pagenum Optional. Page number. Default 1.
    21932193 * @param bool $escape  Optional. Whether to escape the URL for display, with esc_url(). Defaults to true.
    21942194 *                      Otherwise, prepares the URL with esc_url_raw().
     
    22502250     * @since 2.5.0
    22512251     *
    2252      * @param string $result The page number link.
    2253      */
    2254     $result = apply_filters( 'get_pagenum_link', $result );
     2252     * @param string $result  The page number link.
     2253     * @param int    $pagenum The page number.
     2254     */
     2255    $result = apply_filters( 'get_pagenum_link', $result, $pagenum );
    22552256
    22562257    if ( $escape ) {
Note: See TracChangeset for help on using the changeset viewer.