Make WordPress Core


Ignore:
Timestamp:
02/12/2018 09:11:13 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Comments: Avoid a PHP notice in paginate_comments_links() if type argument is set to array.

The function is a wrapper for paginate_links(), which returns an array if requested.

Props anantajitjg.
Fixes #43299.

File:
1 edited

Legend:

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

    r42660 r42703  
    37693769 *     @type string $after_page_number  A string to append after the page number. Default empty.
    37703770 * }
    3771  * @return array|string|void String of page links or array of page links.
     3771 * @return string|array|void String of page links or array of page links.
    37723772 */
    37733773function paginate_links( $args = '' ) {
Note: See TracChangeset for help on using the changeset viewer.