WordPress.org

Make WordPress Core

Changeset 11711


Ignore:
Timestamp:
07/14/2009 07:59:52 AM (11 years ago)
Author:
azaozz
Message:

Fix converting of HTML entities in Quick editor for comments, don't output QE data when the user cannot edit comments, fixes #9935

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r11709 r11711  
    21242124                printf(__('Submitted on <a href="%1$s">%2$s at %3$s</a>'), get_comment_link($comment->comment_ID), get_comment_date(__('Y/m/d')), get_comment_date(__('g:ia')));
    21252125                echo '</div>';
    2126                 comment_text(); ?>
     2126                comment_text();
     2127                if ( $user_can ) { ?>
    21272128                <div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
    2128                 <textarea class="comment" rows="3" cols="10"><?php echo $comment->comment_content; ?></textarea>
    2129                 <div class="author-email"><?php if ( $user_can ) echo esc_attr( $comment->comment_author_email ); ?></div>
    2130                 <div class="author"><?php if ( $user_can ) echo esc_attr( $comment->comment_author ); ?></div>
     2129                <textarea class="comment" rows="1" cols="1"><?php echo htmlspecialchars($comment->comment_content, ENT_QUOTES); ?></textarea>
     2130                <div class="author-email"><?php echo esc_attr( $comment->comment_author_email ); ?></div>
     2131                <div class="author"><?php echo esc_attr( $comment->comment_author ); ?></div>
    21312132                <div class="author-url"><?php echo esc_attr( $comment->comment_author_url ); ?></div>
    21322133                <div class="comment_status"><?php echo $comment->comment_approved; ?></div>
    21332134                </div>
    21342135                <?php
     2136                }
    21352137                $actions = array();
    21362138
  • trunk/wp-admin/wp-admin.css

    r11676 r11711  
    733733}
    734734
    735 .column-comment p {
     735.widefat .column-comment p {
    736736    margin: 0.6em 0;
    737737}
Note: See TracChangeset for help on using the changeset viewer.