File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
tests/phpunit/tests/functions Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2019,13 +2019,13 @@ function wp_get_archives( $args = '' ) {
20192019 );
20202020
20212021 /**
2022- * Filters the archive links list arguments .
2022+ * Filters the arguments for displaying archive links .
20232023 *
20242024 * @since 7.0.0
20252025 *
20262026 * @see wp_get_archives()
20272027 *
2028- * @param array $args An array of arguments .
2028+ * @param array<string, string|int|bool> $args Arguments .
20292029 */
20302030 $ args = apply_filters ( 'wp_get_archives_args ' , $ args );
20312031
Original file line number Diff line number Diff line change @@ -227,9 +227,9 @@ public function test_wp_get_archives_args_filter() {
227227 $ title3 = get_post ( $ ids [2 ] )->post_title ;
228228
229229 $ expected = <<<EOF
230- <li><a href=' $ link1'> $ title1</a></li>
231- <li><a href=' $ link2'> $ title2</a></li>
232- <li><a href=' $ link3'> $ title3</a></li>
230+ <li><a href='$ link1'> $ title1</a></li>
231+ <li><a href=' $ link2'> $ title2</a></li>
232+ <li><a href=' $ link3'> $ title3</a></li>
233233EOF ;
234234 $ archives = wp_get_archives (
235235 array (
You can’t perform that action at this time.
0 commit comments