Make WordPress Core


Ignore:
Timestamp:
04/28/2009 05:58:45 AM (16 years ago)
Author:
ryan
Message:

s/attribute_escape/attr/. see #9650

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-comments.php

    r11104 r11109  
    8484require_once('admin-header.php');
    8585
    86 $mode = ( ! isset($_GET['mode']) || empty($_GET['mode']) ) ? 'detail' : attribute_escape($_GET['mode']);
     86$mode = ( ! isset($_GET['mode']) || empty($_GET['mode']) ) ? 'detail' : attr($_GET['mode']);
    8787
    8888$default_status = get_user_option('edit_comments_last_view');
     
    9595    update_usermeta($current_user->ID, 'edit_comments_last_view', $comment_status);
    9696
    97 $comment_type = !empty($_GET['comment_type']) ? attribute_escape($_GET['comment_type']) : '';
     97$comment_type = !empty($_GET['comment_type']) ? attr($_GET['comment_type']) : '';
    9898
    9999$search_dirty = ( isset($_GET['s']) ) ? $_GET['s'] : '';
    100 $search = attribute_escape( $search_dirty ); ?>
     100$search = attr( $search_dirty ); ?>
    101101
    102102<div class="wrap">
     
    165165    // I toyed with this, but decided against it. Leaving it in here in case anyone thinks it is a good idea. ~ Mark
    166166    if ( !empty( $_GET['s'] ) )
    167         $link = add_query_arg( 's', attribute_escape( stripslashes( $_GET['s'] ) ), $link );
     167        $link = add_query_arg( 's', attr( stripslashes( $_GET['s'] ) ), $link );
    168168    */
    169169    $status_links[] = "<li class='$status'><a href='$link'$class>" . sprintf(
     
    365365    <input type="hidden" name="comment_status" value="<?php echo attr($comment_status); ?>" />
    366366    <input type="hidden" name="page" value="<?php echo isset($_REQUEST['page']) ? absint( $_REQUEST['page'] ) : 1; ?>" />
    367     <input type="hidden" name="p" value="<?php echo attribute_escape( $post_id ); ?>" />
    368     <input type="hidden" name="comment_type" value="<?php echo attribute_escape( $comment_type ); ?>" />
     367    <input type="hidden" name="p" value="<?php echo attr( $post_id ); ?>" />
     368    <input type="hidden" name="comment_type" value="<?php echo attr( $comment_type ); ?>" />
    369369    <?php wp_nonce_field( 'add-comment', '_ajax_nonce', false ); ?>
    370370</form>
Note: See TracChangeset for help on using the changeset viewer.