From c974ac77c4ad68775331c269adcdcdde4fee94c7 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Thu, 28 Jan 2016 04:45:46 +0000 Subject: [PATCH] Pass additional params to 'get_archive_links' filter. Props sebastian.pisula. Fixes #35573. git-svn-id: https://develop.svn.wordpress.org/trunk@36418 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/general-template.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 0d6db30bf0..79ff616e27 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -1503,10 +1503,16 @@ function get_archives_link($url, $text, $format = 'html', $before = '', $after = * Filter the archive link content. * * @since 2.6.0 + * @since 4.5.0 Added `$url`, `$text`, `$format`, `$before`, and `$after` params. * * @param string $link_html The archive HTML link content. + * @param string $url URL to archive. + * @param string $text Archive text description. + * @param string $format Link format. Can be 'link', 'option', 'html', or custom. + * @param string $before Content to prepend to the description. + * @param string $after Content to append to the description. */ - return apply_filters( 'get_archives_link', $link_html ); + return apply_filters( 'get_archives_link', $link_html, $url, $text, $format, $before, $after ); } /**