Make WordPress Core


Ignore:
Timestamp:
11/30/2014 10:37:00 PM (11 years ago)
Author:
wonderboymusic
Message:

Improve the @param docs for src/wp-includes/post*.php.

See #30224.

File:
1 edited

Legend:

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

    r30545 r30671  
    207207 *
    208208 * @param string $more_link_text Optional. Content for when there is more text.
    209  * @param bool $strip_teaser Optional. Strip teaser content before the more text. Default is false.
     209 * @param bool   $strip_teaser  Optional. Strip teaser content before the more text. Default is false.
    210210 */
    211211function the_content( $more_link_text = null, $strip_teaser = false) {
     
    230230 *
    231231 * @param string $more_link_text Optional. Content for when there is more text.
    232  * @param bool $stripteaser Optional. Strip teaser content before the more text. Default is false.
     232 * @param bool $strip_teaser Optional. Strip teaser content before the more text. Default is false.
    233233 * @return string
    234234 */
     
    14471447 *
    14481448 * @param int|WP_Post $id Optional. Post ID or post object.
    1449  * @param bool $fullsize Optional, default is false. Whether to use full size.
    1450  * @param bool $deprecated Deprecated. Not used.
    1451  * @param bool $permalink Optional, default is false. Whether to include permalink.
     1449 * @param bool        $fullsize    Optional, default is false. Whether to use full size.
     1450 * @param bool        $deprecated  Deprecated. Not used.
     1451 * @param bool        $permalink    Optional, default is false. Whether to include permalink.
    14521452 */
    14531453function the_attachment_link( $id = 0, $fullsize = false, $deprecated = false, $permalink = false ) {
     
    14661466 * @since 2.5.0
    14671467 *
    1468  * @param int|WP_Post $id Optional. Post ID or post object.
    1469  * @param string $size Optional, default is 'thumbnail'. Size of image, either array or string.
    1470  * @param bool $permalink Optional, default is false. Whether to add permalink to image.
    1471  * @param bool $icon Optional, default is false. Whether to include icon.
    1472  * @param string|bool $text Optional, default is false. If string, then will be link text.
    1473  * @param array|string $attr Optional. Array or string of attributes.
     1468 * @param int|WP_Post  $id        Optional. Post ID or post object.
     1469 * @param string       $size      Optional, default is 'thumbnail'. Size of image, either array or string.
     1470 * @param bool         $permalink Optional, default is false. Whether to add permalink to image.
     1471 * @param bool         $icon      Optional, default is false. Whether to include icon.
     1472 * @param string|bool  $text      Optional, default is false. If string, then will be link text.
     1473 * @param array|string $attr      Optional. Array or string of attributes.
    14741474 * @return string HTML content.
    14751475 */
     
    17311731 *
    17321732 * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post.
    1733  * @param string $type 'all' (default), 'revision' or 'autosave'
     1733 * @param string      $type    'all' (default), 'revision' or 'autosave'
    17341734 * @return null
    17351735 */
Note: See TracChangeset for help on using the changeset viewer.