Make WordPress Core


Ignore:
Timestamp:
06/18/2004 12:22:09 AM (22 years ago)
Author:
rboren
Message:

stripslashes() elimination. Remove extra slashes during upgrade. Bugs 0000059 and 0000018

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-author.php

    r1355 r1435  
    7373    global $id, $authordata;
    7474
    75     echo '<a href="' . get_author_link(0, $authordata->ID, $authordata->user_nicename) . '" title="' . sprintf(__("Posts by %s"), htmlspecialchars(the_author($idmode, false))) . '">' . stripslashes(the_author($idmode, false)) . '</a>';
     75    echo '<a href="' . get_author_link(0, $authordata->ID, $authordata->user_nicename) . '" title="' . sprintf(__("Posts by %s"), htmlspecialchars(the_author($idmode, false))) . '">' . the_author($idmode, false) . '</a>';
    7676}
    7777
     
    144144            if (! $hide_empty) echo $name;
    145145        } else {
    146             $link = '<a href="' . get_author_link(0, $author->ID, $author->user_nicename) . '" title="' . sprintf(__("Posts by %s"), htmlspecialchars($author->user_nickname)) . '">' . stripslashes($name) . '</a>';
     146            $link = '<a href="' . get_author_link(0, $author->ID, $author->user_nicename) . '" title="' . sprintf(__("Posts by %s"), htmlspecialchars($author->user_nickname)) . '">' . $name . '</a>';
    147147
    148148            if ( (! empty($feed_image)) || (! empty($feed)) ) {
     
    157157
    158158                if (! empty($feed)) {
    159                     $title =  ' title="' . stripslashes($feed) . '"';
    160                     $alt = ' alt="' . stripslashes($feed) . '"';
    161                     $name = stripslashes($feed);
     159                    $title =  ' title="' . $feed . '"';
     160                    $alt = ' alt="' . $feed . '"';
     161                    $name = $feed;
    162162                    $link .= $title;
    163163                }
Note: See TracChangeset for help on using the changeset viewer.