Make WordPress Core


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

s/attribute_escape/attr/. see #9650

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r11081 r11109  
    372372        <h4 id="quick-post-title"><label for="title"><?php _e('Title') ?></label></h4>
    373373        <div class="input-text-wrap">
    374             <input type="text" name="post_title" id="title" tabindex="1" autocomplete="off" value="<?php echo attribute_escape( $post->post_title ); ?>" />
     374            <input type="text" name="post_title" id="title" tabindex="1" autocomplete="off" value="<?php echo attr( $post->post_title ); ?>" />
    375375        </div>
    376376
     
    433433            $url = get_edit_post_link( $draft->ID );
    434434            $title = _draft_or_post_title( $draft->ID );
    435             $item = "<h4><a href='$url' title='" . sprintf( __( 'Edit "%s"' ), attribute_escape( $title ) ) . "'>$title</a> <abbr title='" . get_the_time(__('Y/m/d g:i:s A'), $draft) . "'>" . get_the_time( get_option( 'date_format' ), $draft ) . '</abbr></h4>';
     435            $item = "<h4><a href='$url' title='" . sprintf( __( 'Edit "%s"' ), attr( $title ) ) . "'>$title</a> <abbr title='" . get_the_time(__('Y/m/d g:i:s A'), $draft) . "'>" . get_the_time( get_option( 'date_format' ), $draft ) . '</abbr></h4>';
    436436            if ( $the_content = preg_split( '#\s#', strip_tags( $draft->post_content ), 11, PREG_SPLIT_NO_EMPTY ) )
    437437                $item .= '<p>' . join( ' ', array_slice( $the_content, 0, 10 ) ) . ( 10 < count( $the_content ) ? '&hellip;' : '' ) . '</p>';
     
    580580            <div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
    581581                <textarea class="comment" rows="3" cols="10"><?php echo $comment->comment_content; ?></textarea>
    582                 <div class="author-email"><?php echo attribute_escape( $comment->comment_author_email ); ?></div>
    583                 <div class="author"><?php echo attribute_escape( $comment->comment_author ); ?></div>
    584                 <div class="author-url"><?php echo attribute_escape( $comment->comment_author_url ); ?></div>
     582                <div class="author-email"><?php echo attr( $comment->comment_author_email ); ?></div>
     583                <div class="author"><?php echo attr( $comment->comment_author ); ?></div>
     584                <div class="author-url"><?php echo attr( $comment->comment_author_url ); ?></div>
    585585                <div class="comment_status"><?php echo $comment->comment_approved; ?></div>
    586586            </div>
Note: See TracChangeset for help on using the changeset viewer.