Make WordPress Core

Changeset 60139


Ignore:
Timestamp:
04/08/2025 01:59:10 AM (3 weeks ago)
Author:
jorbin
Message:

Docs: Update inline docs for various general template functions.

Reviewed By peterwilsoncc, jorbin.
Merges [60120] and [60121] to the 6.8 branch.

Props dilipbheda, mukesh27, SergeyBiryukov, audrasjb.
Fixes #63215.
See #63166.

Location:
branches/6.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.8

  • branches/6.8/src/wp-includes/general-template.php

    r60088 r60139  
    2020 * @since 5.5.0 The `$args` parameter was added.
    2121 *
    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.
    2525 * @return void|false Void on success, false if the template does not exist.
    2626 */
     
    6464 * @since 5.5.0 The `$args` parameter was added.
    6565 *
    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.
    6969 * @return void|false Void on success, false if the template does not exist.
    7070 */
     
    108108 * @since 5.5.0 The `$args` parameter was added.
    109109 *
    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.
    113113 * @return void|false Void on success, false if the template does not exist.
    114114 */
     
    160160 *
    161161 * @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.
    163163 * @param array       $args Optional. Additional arguments passed to the template.
    164164 *                          Default empty array.
     
    176176     *
    177177     * @param string      $slug The slug name for the generic template.
    178      * @param string|null $name The name of the specialized template or null if
    179      *                          there is none.
     178     * @param string|null $name The name of the specialized template
     179     *                          or null if there is none.
    180180     * @param array       $args Additional arguments passed to the template.
    181181     */
     
    197197     *
    198198     * @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.
     199     * @param string   $name      The name of the specialized template
     200     *                            or an empty string if there is none.
    201201     * @param string[] $templates Array of template files to search for, in order.
    202202     * @param array    $args      Additional arguments passed to the template.
     
    19171917 * @param string $before   Optional. Content to prepend to the description. Default empty.
    19181918 * @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.
    19201920 * @return string HTML link content for archive.
    19211921 */
Note: See TracChangeset for help on using the changeset viewer.