mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 11:35:48 +00:00
Use correct order of arguments when calling edit_term_link() from edit_tag_link(). Correct $tag parameter description. props pbiron. fixes #25116.
Built from https://develop.svn.wordpress.org/trunk@25079 git-svn-id: http://core.svn.wordpress.org/trunk@25064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0e349eaace
commit
52e2e61cb1
@ -662,11 +662,11 @@ function get_edit_tag_link( $tag_id, $taxonomy = 'post_tag' ) {
|
||||
* @param string $link Optional. Anchor text.
|
||||
* @param string $before Optional. Display before edit link.
|
||||
* @param string $after Optional. Display after edit link.
|
||||
* @param int|object $tag Tag object or ID
|
||||
* @param object $tag Tag object.
|
||||
* @return string HTML content.
|
||||
*/
|
||||
function edit_tag_link( $link = '', $before = '', $after = '', $tag = null ) {
|
||||
$link = edit_term_link( $link, '', '', false, $tag );
|
||||
$link = edit_term_link( $link, '', '', $tag, false );
|
||||
echo $before . apply_filters( 'edit_tag_link', $link ) . $after;
|
||||
}
|
||||
|
||||
@ -709,7 +709,7 @@ function get_edit_term_link( $term_id, $taxonomy, $object_type = '' ) {
|
||||
* @param string $link Optional. Anchor text.
|
||||
* @param string $before Optional. Display before edit link.
|
||||
* @param string $after Optional. Display after edit link.
|
||||
* @param object $term Term object
|
||||
* @param object $term Term object.
|
||||
* @return string HTML content.
|
||||
*/
|
||||
function edit_term_link( $link = '', $before = '', $after = '', $term = null, $echo = true ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user