Skip to content

Commit 6014f76

Browse files
committed
General: Add wp_get_archives_args filter to wp_get_archives().
Developed in WordPress/wordpress-develop#10552 Props jeherve, westonruter. Fixes #64304. Built from https://develop.svn.wordpress.org/trunk@61326 git-svn-id: https://core.svn.wordpress.org/trunk@60638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent ac54526 commit 6014f76

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

wp-includes/general-template.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2018,6 +2018,17 @@ function wp_get_archives( $args = '' ) {
20182018
'w' => get_query_var( 'w' ),
20192019
);
20202020

2021+
/**
2022+
* Filters the arguments for displaying archive links.
2023+
*
2024+
* @since 7.0.0
2025+
*
2026+
* @see wp_get_archives()
2027+
*
2028+
* @param array<string, string|int|bool> $args Arguments.
2029+
*/
2030+
$args = apply_filters( 'wp_get_archives_args', $args );
2031+
20212032
$parsed_args = wp_parse_args( $args, $defaults );
20222033

20232034
$post_type_object = get_post_type_object( $parsed_args['post_type'] );

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '7.0-alpha-61325';
19+
$wp_version = '7.0-alpha-61326';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)