mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 15:47:05 +00:00
Docs: Improve documentation of the walker argument for various functions.
See #54729 git-svn-id: https://develop.svn.wordpress.org/trunk@53318 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1259,7 +1259,8 @@ function wp_dropdown_pages( $args = '' ) {
|
||||
* will not be wrapped with unordered list `<ul>` tags. Default 'Pages'.
|
||||
* @type string $item_spacing Whether to preserve whitespace within the menu's HTML. Accepts 'preserve' or 'discard'.
|
||||
* Default 'preserve'.
|
||||
* @type Walker $walker Walker instance to use for listing pages. Default empty (Walker_Page).
|
||||
* @type Walker $walker Walker instance to use for listing pages. Default empty which results in a
|
||||
* Walker_Page instance being used.
|
||||
* }
|
||||
* @return void|string Void if 'echo' argument is true, HTML list of pages if 'echo' is false.
|
||||
*/
|
||||
@@ -1381,7 +1382,8 @@ function wp_list_pages( $args = '' ) {
|
||||
* @type string $after The HTML or text to append to the menu. Default is '</ul>'.
|
||||
* @type string $item_spacing Whether to preserve whitespace within the menu's HTML. Accepts 'preserve'
|
||||
* or 'discard'. Default 'discard'.
|
||||
* @type Walker $walker Walker instance to use for listing pages. Default empty (Walker_Page).
|
||||
* @type Walker $walker Walker instance to use for listing pages. Default empty which results in a
|
||||
* Walker_Page instance being used.
|
||||
* }
|
||||
* @return void|string Void if 'echo' argument is true, HTML menu if 'echo' is false.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user