Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#10858 closed defect (bug) (fixed)

Comment quick edit doesn't use "comment_edit_pre" filter

Reported by: viper007bond's profile Viper007Bond Owned by:
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.9
Component: Administration Keywords: has-patch needs-testing
Focuses: Cc:

Description

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.

Attachments (1)

10858.patch (1.7 KB) - added by Viper007Bond 15 years ago.

Download all attachments as: .zip

Change History (7)

@Viper007Bond
15 years ago

#1 @Viper007Bond
15 years ago

  • Keywords has-patch needs-testing added; needs-patch removed

#2 @azaozz
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [11975]) Apply "comment_edit_pre" filter when quick-editing comments, props Viper007Bond, fixes #10858

#3 @azaozz
15 years ago

Seems better not to change the whole $comment object there, it's referenced.

#4 @azaozz
15 years ago

(In [11983]) htmlspecialchars after apply_filters, props Viper007Bond, see #10858

#6 @Denis-de-Bernardy
15 years ago

  • Milestone changed from Unassigned to 2.9
Note: See TracTickets for help on using tickets.