From 67b017d42e38dfb80fe20b31e69aed6c96a23db8 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Wed, 2 Apr 2025 12:59:30 +0000 Subject: [PATCH] Docs: Update inline docs for various general template functions. Props dilipbheda, mukesh27. Fixes #63215. See #63166. Built from https://develop.svn.wordpress.org/trunk@60120 git-svn-id: http://core.svn.wordpress.org/trunk@59456 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 32 ++++++++++++++++---------------- wp-includes/version.php | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index f0cd895719..907f95ccb6 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -19,9 +19,9 @@ * @since 5.5.0 A return value was added. * @since 5.5.0 The `$args` parameter was added. * - * @param string $name The name of the specialized header. - * @param array $args Optional. Additional arguments passed to the header template. - * Default empty array. + * @param string|null $name The name of the specialized header. Default null. + * @param array $args Optional. Additional arguments passed to the header template. + * Default empty array. * @return void|false Void on success, false if the template does not exist. */ function get_header( $name = null, $args = array() ) { @@ -63,9 +63,9 @@ function get_header( $name = null, $args = array() ) { * @since 5.5.0 A return value was added. * @since 5.5.0 The `$args` parameter was added. * - * @param string $name The name of the specialized footer. - * @param array $args Optional. Additional arguments passed to the footer template. - * Default empty array. + * @param string|null $name The name of the specialized footer. Default null. + * @param array $args Optional. Additional arguments passed to the footer template. + * Default empty array. * @return void|false Void on success, false if the template does not exist. */ function get_footer( $name = null, $args = array() ) { @@ -107,9 +107,9 @@ function get_footer( $name = null, $args = array() ) { * @since 5.5.0 A return value was added. * @since 5.5.0 The `$args` parameter was added. * - * @param string $name The name of the specialized sidebar. - * @param array $args Optional. Additional arguments passed to the sidebar template. - * Default empty array. + * @param string|null $name The name of the specialized sidebar. Default null. + * @param array $args Optional. Additional arguments passed to the sidebar template. + * Default empty array. * @return void|false Void on success, false if the template does not exist. */ function get_sidebar( $name = null, $args = array() ) { @@ -159,7 +159,7 @@ function get_sidebar( $name = null, $args = array() ) { * @since 5.5.0 The `$args` parameter was added. * * @param string $slug The slug name for the generic template. - * @param string|null $name Optional. The name of the specialized template. + * @param string|null $name Optional. The name of the specialized template. Default null. * @param array $args Optional. Additional arguments passed to the template. * Default empty array. * @return void|false Void on success, false if the template does not exist. @@ -195,11 +195,11 @@ function get_template_part( $slug, $name = null, $args = array() ) { * @since 5.2.0 * @since 5.5.0 The `$args` parameter was added. * - * @param string $slug The slug name for the generic template. - * @param string $name The name of the specialized template or an empty - * string if there is none. - * @param string[] $templates Array of template files to search for, in order. - * @param array $args Additional arguments passed to the template. + * @param string $slug The slug name for the generic template. + * @param string|null $name The name of the specialized template or an empty + * string if there is none. + * @param string[] $templates Array of template files to search for, in order. + * @param array $args Additional arguments passed to the template. */ do_action( 'get_template_part', $slug, $name, $templates, $args ); @@ -1916,7 +1916,7 @@ function get_the_post_type_description() { * @param string $format Optional. Can be 'link', 'option', 'html', or custom. Default 'html'. * @param string $before Optional. Content to prepend to the description. Default empty. * @param string $after Optional. Content to append to the description. Default empty. - * @param bool $selected Optional. Set to true if the current page is the selected archive page. + * @param bool $selected Optional. Set to true if the current page is the selected archive page. Default false. * @return string HTML link content for archive. */ function get_archives_link( $url, $text, $format = 'html', $before = '', $after = '', $selected = false ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 94db577261..17553e2f1f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.9-alpha-60119'; +$wp_version = '6.9-alpha-60120'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.