Commit 5a94066473 for wordpress.org

commit 5a940664731d18eba429e8ea9b256701fe5b048c
Author: Weston Ruter <weston@xwp.co>
Date:   Sun Nov 30 17:41:34 2025 +0000

    General: Add `wp_get_archives_args` filter to `wp_get_archives()`.

    Developed in https://github.com/WordPress/wordpress-develop/pull/10552

    Props jeherve, westonruter.
    Fixes #64304.

    Built from https://develop.svn.wordpress.org/trunk@61326


    git-svn-id: http://core.svn.wordpress.org/trunk@60638 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
index 640bc54c8e..68baee9d31 100644
--- a/wp-includes/general-template.php
+++ b/wp-includes/general-template.php
@@ -2018,6 +2018,17 @@ function wp_get_archives( $args = '' ) {
 		'w'               => get_query_var( 'w' ),
 	);

+	/**
+	 * Filters the arguments for displaying archive links.
+	 *
+	 * @since 7.0.0
+	 *
+	 * @see wp_get_archives()
+	 *
+	 * @param array<string, string|int|bool> $args Arguments.
+	 */
+	$args = apply_filters( 'wp_get_archives_args', $args );
+
 	$parsed_args = wp_parse_args( $args, $defaults );

 	$post_type_object = get_post_type_object( $parsed_args['post_type'] );
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 13811f609d..b963cbf6c7 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.0-alpha-61325';
+$wp_version = '7.0-alpha-61326';

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