mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Docs: Miscellaneous corrections and improvements to docblocks.
See #57840 git-svn-id: https://develop.svn.wordpress.org/trunk@55870 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -158,10 +158,10 @@ function get_sidebar( $name = null, $args = array() ) {
|
||||
* @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 specialized 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 @@ function get_template_part( $slug, $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 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 @@ function get_template_part( $slug, $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 $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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user