Make WordPress Core


Ignore:
Timestamp:
05/05/2009 07:43:53 PM (15 years ago)
Author:
markjaquith
Message:

_a(), _ea(), _xa(), attr() are now esc_attr(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r11190 r11204  
    372372        $comment_author = apply_filters('pre_comment_author_name', $_COOKIE['comment_author_'.COOKIEHASH]);
    373373        $comment_author = stripslashes($comment_author);
    374         $comment_author = attr($comment_author);
     374        $comment_author = esc_attr($comment_author);
    375375        $_COOKIE['comment_author_'.COOKIEHASH] = $comment_author;
    376376    }
     
    379379        $comment_author_email = apply_filters('pre_comment_author_email', $_COOKIE['comment_author_email_'.COOKIEHASH]);
    380380        $comment_author_email = stripslashes($comment_author_email);
    381         $comment_author_email = attr($comment_author_email);
     381        $comment_author_email = esc_attr($comment_author_email);
    382382        $_COOKIE['comment_author_email_'.COOKIEHASH] = $comment_author_email;
    383383    }
Note: See TracChangeset for help on using the changeset viewer.