Make WordPress Core

Changeset 10307


Ignore:
Timestamp:
01/05/2009 12:00:44 PM (15 years ago)
Author:
azaozz
Message:

Clean URL in recent comments widget, props danlee, fixes #8691 for 2.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-includes/widgets.php

    r10303 r10307  
    13991399            <ul id="recentcomments"><?php
    14001400            if ( $comments ) : foreach ( (array) $comments as $comment) :
    1401             echo  '<li class="recentcomments">' . sprintf(__('%1$s on %2$s'), get_comment_author_link(), '<a href="'. get_comment_link($comment->comment_ID) . '">' . get_the_title($comment->comment_post_ID) . '</a>') . '</li>';
     1401            echo  '<li class="recentcomments">' . sprintf(__('%1$s on %2$s'), get_comment_author_link(), '<a href="' . clean_url( get_comment_link($comment->comment_ID) ) . '">' . get_the_title($comment->comment_post_ID) . '</a>') . '</li>';
    14021402            endforeach; endif;?></ul>
    14031403        <?php echo $after_widget; ?>
Note: See TracChangeset for help on using the changeset viewer.