mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Docs: Promote many bool types to true or false where only that value is used.
See #51800 git-svn-id: https://develop.svn.wordpress.org/trunk@49927 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1645,7 +1645,7 @@ function wp_get_attachment_link( $id = 0, $size = 'thumbnail', $permalink = fals
|
||||
* an array of width and height values in pixels (in that order).
|
||||
* @param bool $permalink Whether to add permalink to image. Default false.
|
||||
* @param bool $icon Whether to include an icon.
|
||||
* @param string|bool $text If string, will be link text.
|
||||
* @param string|false $text If string, will be link text.
|
||||
* @param array|string $attr Array or string of attributes.
|
||||
*/
|
||||
return apply_filters( 'wp_get_attachment_link', "<a href='" . esc_url( $url ) . "'>$link_text</a>", $id, $size, $permalink, $icon, $text, $attr );
|
||||
|
||||
Reference in New Issue
Block a user