Make WordPress Core


Ignore:
Timestamp:
08/24/2016 03:59:00 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve the docs for the_title() and make them more consistent with the_title_attribute().

Props ixkaito, swissspidy.
Fixes #37732.

File:
1 edited

Legend:

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

    r38327 r38348  
    3131
    3232/**
    33  * Display or retrieve the current post title with optional content.
     33 * Display or retrieve the current post title with optional markup.
    3434 *
    3535 * @since 0.71
    3636 *
    37  * @param string $before Optional. Content to prepend to the title.
    38  * @param string $after  Optional. Content to append to the title.
    39  * @param bool   $echo   Optional, default to true.Whether to display or return.
    40  * @return string|void String if $echo parameter is false.
     37 * @param string $before Optional. Markup to prepend to the title. Default empty.
     38 * @param string $after  Optional. Markup to append to the title. Default empty.
     39 * @param bool   $echo   Optional. Whether to echo or return the title. Default true for echo.
     40 * @return string|void Current post title if $echo is false.
    4141 */
    4242function the_title( $before = '', $after = '', $echo = true ) {
Note: See TracChangeset for help on using the changeset viewer.