|
19 | 19 | * @since 5.5.0 A return value was added. |
20 | 20 | * @since 5.5.0 The `$args` parameter was added. |
21 | 21 | * |
22 | | - * @param string $name The name of the specialized header. |
23 | | - * @param array $args Optional. Additional arguments passed to the header template. |
24 | | - * Default empty array. |
| 22 | + * @param string|null $name The name of the specialized header. Default null. |
| 23 | + * @param array $args Optional. Additional arguments passed to the header template. |
| 24 | + * Default empty array. |
25 | 25 | * @return void|false Void on success, false if the template does not exist. |
26 | 26 | */ |
27 | 27 | function get_header( $name = null, $args = array() ) { |
@@ -63,9 +63,9 @@ function get_header( $name = null, $args = array() ) { |
63 | 63 | * @since 5.5.0 A return value was added. |
64 | 64 | * @since 5.5.0 The `$args` parameter was added. |
65 | 65 | * |
66 | | - * @param string $name The name of the specialized footer. |
67 | | - * @param array $args Optional. Additional arguments passed to the footer template. |
68 | | - * Default empty array. |
| 66 | + * @param string|null $name The name of the specialized footer. Default null. |
| 67 | + * @param array $args Optional. Additional arguments passed to the footer template. |
| 68 | + * Default empty array. |
69 | 69 | * @return void|false Void on success, false if the template does not exist. |
70 | 70 | */ |
71 | 71 | function get_footer( $name = null, $args = array() ) { |
@@ -107,9 +107,9 @@ function get_footer( $name = null, $args = array() ) { |
107 | 107 | * @since 5.5.0 A return value was added. |
108 | 108 | * @since 5.5.0 The `$args` parameter was added. |
109 | 109 | * |
110 | | - * @param string $name The name of the specialized sidebar. |
111 | | - * @param array $args Optional. Additional arguments passed to the sidebar template. |
112 | | - * Default empty array. |
| 110 | + * @param string|null $name The name of the specialized sidebar. Default null. |
| 111 | + * @param array $args Optional. Additional arguments passed to the sidebar template. |
| 112 | + * Default empty array. |
113 | 113 | * @return void|false Void on success, false if the template does not exist. |
114 | 114 | */ |
115 | 115 | function get_sidebar( $name = null, $args = array() ) { |
@@ -159,7 +159,7 @@ function get_sidebar( $name = null, $args = array() ) { |
159 | 159 | * @since 5.5.0 The `$args` parameter was added. |
160 | 160 | * |
161 | 161 | * @param string $slug The slug name for the generic template. |
162 | | - * @param string|null $name Optional. The name of the specialized template. |
| 162 | + * @param string|null $name Optional. The name of the specialized template. Default null. |
163 | 163 | * @param array $args Optional. Additional arguments passed to the template. |
164 | 164 | * Default empty array. |
165 | 165 | * @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() ) { |
195 | 195 | * @since 5.2.0 |
196 | 196 | * @since 5.5.0 The `$args` parameter was added. |
197 | 197 | * |
198 | | - * @param string $slug The slug name for the generic template. |
199 | | - * @param string $name The name of the specialized template or an empty |
200 | | - * string if there is none. |
201 | | - * @param string[] $templates Array of template files to search for, in order. |
202 | | - * @param array $args Additional arguments passed to the template. |
| 198 | + * @param string $slug The slug name for the generic template. |
| 199 | + * @param string|null $name The name of the specialized template or an empty |
| 200 | + * string if there is none. |
| 201 | + * @param string[] $templates Array of template files to search for, in order. |
| 202 | + * @param array $args Additional arguments passed to the template. |
203 | 203 | */ |
204 | 204 | do_action( 'get_template_part', $slug, $name, $templates, $args ); |
205 | 205 |
|
@@ -1916,7 +1916,7 @@ function get_the_post_type_description() { |
1916 | 1916 | * @param string $format Optional. Can be 'link', 'option', 'html', or custom. Default 'html'. |
1917 | 1917 | * @param string $before Optional. Content to prepend to the description. Default empty. |
1918 | 1918 | * @param string $after Optional. Content to append to the description. Default empty. |
1919 | | - * @param bool $selected Optional. Set to true if the current page is the selected archive page. |
| 1919 | + * @param bool $selected Optional. Set to true if the current page is the selected archive page. Default false. |
1920 | 1920 | * @return string HTML link content for archive. |
1921 | 1921 | */ |
1922 | 1922 | function get_archives_link( $url, $text, $format = 'html', $before = '', $after = '', $selected = false ) { |
|
0 commit comments