Pass additional params to 'get_archive_links' filter.

Props sebastian.pisula.
Fixes #35573.
Built from https://develop.svn.wordpress.org/trunk@36418


git-svn-id: http://core.svn.wordpress.org/trunk@36385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Boone Gorges 2016-01-28 04:46:26 +00:00
parent 24adb71a56
commit 4b4978ecbd
2 changed files with 8 additions and 2 deletions

View File

@ -1503,10 +1503,16 @@ function get_archives_link($url, $text, $format = 'html', $before = '', $after =
* Filter the archive link content. * Filter the archive link content.
* *
* @since 2.6.0 * @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 $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 );
} }
/** /**

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.5-alpha-36417'; $wp_version = '4.5-alpha-36418';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.