WordPress.org

Make WordPress Core

Changeset 47104


Ignore:
Timestamp:
01/22/2020 12:55:13 AM (11 months ago)
Author:
SergeyBiryukov
Message:

Docs: Expand @return value description for wp_loginout(), wp_register(), get_calendar().

See #48303.

File:
1 edited

Legend:

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

    r47096 r47104  
    318318 * @param string $redirect Optional path to redirect to on login/logout.
    319319 * @param bool   $echo     Default to echo and not return the link.
    320  * @return string|void String when retrieving.
     320 * @return void|string Void if `$echo` argument is true, log in/out link if `$echo` is false.
    321321 */
    322322function wp_loginout( $redirect = '', $echo = true ) {
     
    588588 * @param string $after  Text to output after the link. Default `</li>`.
    589589 * @param bool   $echo   Default to echo and not return the link.
    590  * @return string|void String when retrieving.
     590 * @return void|string Void if `$echo` argument is true, registration or admin link
     591 *                     if `$echo` is false.
    591592 */
    592593function wp_register( $before = '<li>', $after = '</li>', $echo = true ) {
     
    20582059 * @param bool $initial Optional, default is true. Use initial calendar names.
    20592060 * @param bool $echo    Optional, default is true. Set to false for return.
    2060  * @return string|void String when retrieving.
     2061 * @return void|string Void if `$echo` argument is true, calendar HTML if `$echo` is false.
    20612062 */
    20622063function get_calendar( $initial = true, $echo = true ) {
Note: See TracChangeset for help on using the changeset viewer.