diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/general-template.php --- a/wp/wp-includes/general-template.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/general-template.php Fri Sep 05 18:40:08 2025 +0200 @@ -7,10 +7,10 @@ */ /** - * Load header template. + * Loads header template. * * Includes the header template for a theme or if a name is specified then a - * specialised header will be included. + * specialized header will be included. * * For the parameter, if the file is called "header-special.php" then specify * "special". @@ -19,7 +19,7 @@ * @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 specialised header. + * @param string $name The name of the specialized header. * @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. @@ -51,10 +51,10 @@ } /** - * Load footer template. + * Loads footer template. * * Includes the footer template for a theme or if a name is specified then a - * specialised footer will be included. + * specialized footer will be included. * * For the parameter, if the file is called "footer-special.php" then specify * "special". @@ -63,7 +63,7 @@ * @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 specialised footer. + * @param string $name The name of the specialized footer. * @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. @@ -95,10 +95,10 @@ } /** - * Load sidebar template. + * Loads sidebar template. * * Includes the sidebar template for a theme or if a name is specified then a - * specialised sidebar will be included. + * specialized sidebar will be included. * * For the parameter, if the file is called "sidebar-special.php" then specify * "special". @@ -107,7 +107,7 @@ * @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 specialised sidebar. + * @param string $name The name of the specialized sidebar. * @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. @@ -145,7 +145,7 @@ * in the theme. * * Includes the named template part for a theme or if a name is specified then a - * specialised part will be included. If the theme contains no {slug}.php file + * specialized part will be included. If the theme contains no {slug}.php file * then no template will be included. * * The template is included using require, not require_once, so you may include the @@ -158,10 +158,10 @@ * @since 5.5.0 A return value was added. * @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 specialised template. - * @param array $args Optional. Additional arguments passed to the template. - * Default empty array. + * @param string $slug The slug name for the generic template. + * @param string|null $name Optional. The name of the specialized template. + * @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. */ function get_template_part( $slug, $name = null, $args = array() ) { @@ -175,7 +175,8 @@ * @since 5.5.0 The `$args` parameter was added. * * @param string $slug The slug name for the generic template. - * @param string|null $name The name of the specialized template. + * @param string|null $name The name of the specialized template or null if + * there is none. * @param array $args Additional arguments passed to the template. */ do_action( "get_template_part_{$slug}", $slug, $name, $args ); @@ -195,7 +196,8 @@ * @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. + * @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. */ @@ -207,7 +209,7 @@ } /** - * Display search form. + * Displays search form. * * Will first attempt to locate the searchform.php file in either the child or * the parent, then load it. If it doesn't exist, then the default search form @@ -322,7 +324,10 @@ if ( 'html5' === $format ) { $form = '