WordPress.org

Make WordPress Core

Changeset 36418


Ignore:
Timestamp:
01/28/2016 04:45:46 AM (5 years ago)
Author:
boonebgorges
Message:

Pass additional params to 'get_archive_links' filter.

Props sebastian.pisula.
Fixes #35573.

File:
1 edited

Legend:

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

    r36382 r36418  
    15041504     *
    15051505     * @since 2.6.0
     1506     * @since 4.5.0 Added `$url`, `$text`, `$format`, `$before`, and `$after` params.
    15061507     *
    15071508     * @param string $link_html The archive HTML link content.
    1508      */
    1509     return apply_filters( 'get_archives_link', $link_html );
     1509     * @param string $url       URL to archive.
     1510     * @param string $text      Archive text description.
     1511     * @param string $format    Link format. Can be 'link', 'option', 'html', or custom.
     1512     * @param string $before    Content to prepend to the description.
     1513     * @param string $after     Content to append to the description.
     1514     */
     1515    return apply_filters( 'get_archives_link', $link_html, $url, $text, $format, $before, $after );
    15101516}
    15111517
Note: See TracChangeset for help on using the changeset viewer.