Make WordPress Core


Ignore:
Timestamp:
10/12/2015 04:14:03 PM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Fix the syntax for marking parameters optional and add defaults in the DocBlock for wp_get_attachment_link().

See #32246.

File:
1 edited

Legend:

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

    r35050 r35057  
    14061406 *                                of width and height values in pixels (in that order).
    14071407 *                                Default 'thumbnail'.
    1408  * @param bool         $permalink Optional, default is false. Whether to add permalink to image.
    1409  * @param bool         $icon      Optional, default is false. Whether to include icon.
    1410  * @param string|bool  $text      Optional, default is false. If string, then will be link text.
    1411  * @param array|string $attr      Optional. Array or string of attributes.
     1408 * @param bool         $permalink Optional, Whether to add permalink to image. Default false.
     1409 * @param bool         $icon      Optional. Whether the attachment is an icon. Default false.
     1410 * @param string|false $text      Optional. Link text to use. Activated by passing a string, false otherwise.
     1411 *                                Default false.
     1412 * @param array|string $attr      Optional. Array or string of attributes. Default empty.
    14121413 * @return string HTML content.
    14131414 */
Note: See TracChangeset for help on using the changeset viewer.