Make WordPress Core

Changeset 29112


Ignore:
Timestamp:
07/11/2014 11:12:42 PM (12 years ago)
Author:
DrewAPicture
Message:

Convert default arguments documentation for wp_page_menu() into a hash notation.

Props coffee2code for the initial patch/
See #28841.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-template.php

    r29003 r29112  
    11131113 * arguments.
    11141114 *
    1115  * <ul>
    1116  * <li><strong>sort_column</strong> - How to sort the list of pages. Defaults
    1117  * to 'menu_order, post_title'. Use column for posts table.</li>
    1118  * <li><strong>menu_class</strong> - Class to use for the div ID which contains
    1119  * the page list. Defaults to 'menu'.</li>
    1120  * <li><strong>echo</strong> - Whether to echo list or return it. Defaults to
    1121  * echo.</li>
    1122  * <li><strong>link_before</strong> - Text before show_home argument text.</li>
    1123  * <li><strong>link_after</strong> - Text after show_home argument text.</li>
    1124  * <li><strong>show_home</strong> - If you set this argument, then it will
    1125  * display the link to the home page. The show_home argument really just needs
    1126  * to be set to the value of the text of the link.</li>
    1127  * </ul>
    1128  *
    11291115 * @since 2.7.0
    11301116 *
    1131  * @param array|string $args
     1117 * @param array|string $args {
     1118 *     Optional. Arguments to generate a page menu. {@see wp_list_pages()}
     1119 *     for additional arguments.
     1120 *
     1121 * @type string     $sort_column How to short the list of pages. Accepts post column names.
     1122 *                               Default 'menu_order, post_title'.
     1123 * @type string     $menu_class  Class to use for the div ID containing the page list. Default 'menu'.
     1124 * @type bool       $echo        Whether to echo the list or return it. Accepts true (echo) or false (return).
     1125 *                               Default true.
     1126 * @type string     $link_before The HTML or text to prepend to $show_home text. Default empty.
     1127 * @type string     $link_after  The HTML or text to append to $show_home text. Default empty.
     1128 * @type int|string $show_home   Whether to display the link to the home page. Can just enter the text
     1129 *                               you'd like shown for the home link. 1|true defaults to 'Home'.
     1130 * }
    11321131 * @return string html menu
    11331132 */
Note: See TracChangeset for help on using the changeset viewer.