From 17b08bf330180b1789bf743b7da3f28c48e0953d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 7 Mar 2025 22:31:18 +0000 Subject: [PATCH] Docs: Clarify the backward compatibility reference in `get_calendar()` DocBlock. Includes adjusting the `@since` note for the `get_calendar` filter, as the reference is only relevant for the function DocBlock. Follow-up to [59908]. See #62281. git-svn-id: https://develop.svn.wordpress.org/trunk@59952 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/general-template.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index cf6eac7c81..78a3d76aac 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -2233,7 +2233,8 @@ function calendar_week_mod( $num ) { * no posts for the month, then it will not be displayed. * * @since 1.0.0 - * @since 6.8.0 New argument $args added, with backward compatibility. + * @since 6.8.0 Added the `$args` parameter, with backward compatibility + * for the replaced `$initial` and `$display` parameters. * * @global wpdb $wpdb WordPress database abstraction object. * @global int $m @@ -2571,7 +2572,7 @@ function get_calendar( $args = array() ) { * Filters the HTML calendar output. * * @since 3.0.0 - * @since 6.8.0 New argument $args added, with backward compatibility. + * @since 6.8.0 Added the `$args` parameter. * * @param string $calendar_output HTML output of the calendar. * @param array $args {