WordPress.org

Make WordPress Core

Changeset 11975


Ignore:
Timestamp:
09/26/09 22:28:22 (6 years ago)
Author:
azaozz
Message:

Apply "comment_edit_pre" filter when quick-editing comments, props Viper007Bond, fixes #10858

File:
1 edited

Legend:

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

    r11962 r11975  
    21422142                if ( $user_can ) { ?> 
    21432143                <div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden"> 
    2144                 <textarea class="comment" rows="1" cols="1"><?php echo htmlspecialchars($comment->comment_content, ENT_QUOTES); ?></textarea> 
     2144                <textarea class="comment" rows="1" cols="1"><?php echo apply_filters( 'comment_edit_pre', htmlspecialchars($comment->comment_content, ENT_QUOTES) ); ?></textarea> 
    21452145                <div class="author-email"><?php echo esc_attr( $comment->comment_author_email ); ?></div> 
    21462146                <div class="author"><?php echo esc_attr( $comment->comment_author ); ?></div> 
Note: See TracChangeset for help on using the changeset viewer.