WordPress.org

Make WordPress Core

Changeset 25079


Ignore:
Timestamp:
08/22/2013 12:48:09 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Use correct order of arguments when calling edit_term_link() from edit_tag_link(). Correct $tag parameter description. props pbiron. fixes #25116.

File:
1 edited

Legend:

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

    r25077 r25079  
    663663 * @param string $before Optional. Display before edit link.
    664664 * @param string $after Optional. Display after edit link.
    665  * @param int|object $tag Tag object or ID
     665 * @param object $tag Tag object.
    666666 * @return string HTML content.
    667667 */
    668668function edit_tag_link( $link = '', $before = '', $after = '', $tag = null ) {
    669     $link = edit_term_link( $link, '', '', false, $tag );
     669    $link = edit_term_link( $link, '', '', $tag, false );
    670670    echo $before . apply_filters( 'edit_tag_link', $link ) . $after;
    671671}
     
    710710 * @param string $before Optional. Display before edit link.
    711711 * @param string $after Optional. Display after edit link.
    712  * @param object $term Term object
     712 * @param object $term Term object.
    713713 * @return string HTML content.
    714714 */
Note: See TracChangeset for help on using the changeset viewer.