Docs: Improve documentation for optional parameters per the documentation standards.

See #49572.

git-svn-id: https://develop.svn.wordpress.org/trunk@48197 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-06-28 11:47:45 +00:00
parent b72fcb6a47
commit 6361798918
14 changed files with 83 additions and 75 deletions
+1 -1
View File
@@ -663,7 +663,7 @@ function wp_unregister_widget_control( $id ) {
* @global array $wp_registered_sidebars Registered sidebars.
* @global array $wp_registered_widgets Registered widgets.
*
* @param int|string $index Optional, default is 1. Index, name or ID of dynamic sidebar.
* @param int|string $index Optional. Index, name or ID of dynamic sidebar. Default 1.
* @return bool True, if widget sidebar was found and called. False if not found or not called.
*/
function dynamic_sidebar( $index = 1 ) {