Skip to content
Permalink
Browse files

Docs: Clarify default value for the `$link` parameter in `edit_tag_li…

…nk()`, `edit_term_link()`, and `edit_bookmark_link()`.

Props atachibana.
Fixes #48109.

git-svn-id: https://develop.svn.wordpress.org/trunk@46383 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Oct 3, 2019
1 parent 5e0904c commit 17765e9e76c102b2605705ed6854772338a8c860
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/wp-includes/link-template.php
@@ -958,7 +958,7 @@ function get_edit_tag_link( $tag_id, $taxonomy = 'post_tag' ) {
*
* @since 2.7.0
*
* @param string $link Optional. Anchor text. Default empty.
* @param string $link Optional. Anchor text. If empty, default is 'Edit This'. Default empty.
* @param string $before Optional. Display before edit link. Default empty.
* @param string $after Optional. Display after edit link. Default empty.
* @param WP_Term $tag Optional. Term object. If null, the queried object will be inspected.
@@ -1037,7 +1037,7 @@ function get_edit_term_link( $term_id, $taxonomy = '', $object_type = '' ) {
*
* @since 3.1.0
*
* @param string $link Optional. Anchor text. Default empty.
* @param string $link Optional. Anchor text. If empty, default is 'Edit This'. Default empty.
* @param string $before Optional. Display before edit link. Default empty.
* @param string $after Optional. Display after edit link. Default empty.
* @param object $term Optional. Term object. If null, the queried object will be inspected. Default null.
@@ -1577,7 +1577,7 @@ function get_edit_bookmark_link( $link = 0 ) {
*
* @since 2.7.0
*
* @param string $link Optional. Anchor text. Default empty.
* @param string $link Optional. Anchor text. If empty, default is 'Edit This'. Default empty.
* @param string $before Optional. Display before edit link. Default empty.
* @param string $after Optional. Display after edit link. Default empty.
* @param int $bookmark Optional. Bookmark ID. Default is the current bookmark.

0 comments on commit 17765e9

Please sign in to comment.
You can’t perform that action at this time.