Make WordPress Core

Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#44237 closed enhancement (fixed)

Add filter for comment flood message text

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


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 6 years ago.
Flood text message
44237-duplicate.diff (1.3 KB) - added by Katyatina 6 years ago.
Duplicate comment message filter
44237.diff (1.6 KB) - added by mukesh27 5 years ago.
Updated patch.

Download all attachments as: .zip

Change History (13)

#1 @SergeyBiryukov
6 years ago

  • Component changed from General to Comments

6 years ago

Flood text message

6 years ago

Duplicate comment message filter

#2 @odminstudios
6 years ago

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

#3 @Katyatina
6 years ago

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

#4 @SergeyBiryukov
6 years ago

  • Milestone changed from Awaiting Review to 5.0

#5 @SergeyBiryukov
6 years ago

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

#6 @pento
6 years ago

  • Milestone changed from 5.0 to 5.1

#7 @pento
5 years ago

  • Milestone changed from 5.1 to 5.2

5 years ago

Updated patch.

#8 @mukesh27
5 years 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 5 years ago by mukesh27 (previous) (diff)

#9 @SergeyBiryukov
5 years 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
5 years ago

In 44972:

PHPCS: Remove extra tabs added in [44970].

See #44237.

Note: See TracTickets for help on using tickets.