[wp-trac] [WordPress Trac] #10858: Comment quick edit doesn't use "comment_edit_pre" filter
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 26 05:14:11 UTC 2009
#10858: Comment quick edit doesn't use "comment_edit_pre" filter
----------------------------+-----------------------------------------------
Reporter: Viper007Bond | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Administration | Version: 2.9
Severity: normal | Keywords: needs-patch
----------------------------+-----------------------------------------------
Drop this code in a plugin:
{{{
add_filter( 'comment_edit_pre', 'viper_commenteditpre' );
function viper_commenteditpre( $content ) {
return 'comment_edit_pre is working! ' . $content;
}
}}}
Edit a comment. If you use the normal edit link, the text shows up. If you
use Quick Edit, it does not.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10858>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list