WordPress.org

Make WordPress Core

Opened 21 months ago

Closed 11 months ago

Last modified 11 months ago

#44237 closed enhancement (fixed)

Add filter for comment flood message text

Reported by: odminstudios Owned by: SergeyBiryukov
Milestone: 5.2 Priority: normal
Severity: normal Version:
Component: Comments Keywords: has-patch
Focuses: Cc:

Description

When users are sending comments too fast, they get "You are posting comments too quickly. Slow down." message.

This message can't be changed. I suggest to add a filter to be able to change this message easily.

Attachments (3)

44237-flood.1.diff (939 bytes) - added by odminstudios 21 months ago.
Flood text message
44237-duplicate.diff (1.3 KB) - added by Katyatina 21 months ago.
Duplicate comment message filter
44237.diff (1.6 KB) - added by mukesh27 11 months ago.
Updated patch.

Download all attachments as: .zip

Change History (13)

#1 @SergeyBiryukov
21 months ago

  • Component changed from General to Comments

@odminstudios
21 months ago

Flood text message

@Katyatina
21 months ago

Duplicate comment message filter

#2 @odminstudios
21 months ago

Filter for flood text message was added. WordCamp St.Petesburg 2018 Contribution Workshop.

#3 @Katyatina
21 months ago

Added filter for duplicate comment message text. WordCamp Saint-Petersburg 2018.

#4 @SergeyBiryukov
21 months ago

  • Milestone changed from Awaiting Review to 5.0

#5 @SergeyBiryukov
21 months ago

  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#6 @pento
17 months ago

  • Milestone changed from 5.0 to 5.1

#7 @pento
14 months ago

  • Milestone changed from 5.1 to 5.2

@mukesh27
11 months ago

Updated patch.

#8 @mukesh27
11 months ago

@SergeyBiryukov, Can you please review updated patch for "You are posting comments too quickly. Slow down." message.

44237-duplicate.diff looks good for comment duplicate message just need to update @since notation.

Last edited 11 months ago by mukesh27 (previous) (diff)

#9 @SergeyBiryukov
11 months ago

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

In 44970:

Comments: Introduce comment_flood_message and comment_duplicate_message filters for comment flood and duplicate comment error messages.

Props odminstudios, Katyatina, mukesh27.
Fixes #44237.

#10 @SergeyBiryukov
11 months ago

In 44972:

PHPCS: Remove extra tabs added in [44970].

See #44237.

Note: See TracTickets for help on using tickets.