Make WordPress Core

Opened 7 years ago

Closed 4 years ago

Last modified 4 years ago

#26841 closed enhancement (fixed)

Add Filter for Comment Form Action

Reported by: cliffseal Owned by: cliffseal
Milestone: 4.6 Priority: normal
Severity: normal Version: 3.8
Component: Comments Keywords: has-patch 4.6-early
Focuses: Cc:


Integrating with some services (including Pardot) requires changes to the form action—unfortunately, this can't be done without hacking core or an experienced developer. Let's add a simple filter here, while keeping the default as it is.

Attachments (2)

26841.diff (852 bytes) - added by cliffseal 7 years ago.
Adds filter for form action
26841.2.diff (1.2 KB) - added by cliffseal 4 years ago.

Download all attachments as: .zip

Change History (14)

7 years ago

Adds filter for form action

#2 @SergeyBiryukov
6 years ago

  • Version changed from trunk to 3.8

#3 @cliffseal
5 years ago

How can I help get a set of eyes on this? Seems like an easy thing to add.

#4 @rachelbaker
4 years ago

  • Keywords reporter-feedback added; dev-feedback removed

@cliffseal What about adding this to the comment_form_default_fields filter instead? Would that work for you?

#5 @cliffseal
4 years ago

@rachelbaker Absolutely! Would you like me to write up an updated patch for that?

#6 @rachelbaker
4 years ago

  • Keywords needs-refresh added; reporter-feedback removed
  • Milestone changed from Awaiting Review to Future Release

@cliffseal That would be super!

#7 @rachelbaker
4 years ago

  • Owner set to cliffseal
  • Status changed from new to assigned

4 years ago

#8 @cliffseal
4 years ago

@rachelbaker As I started writing the patch, comment_form_defaults seemed to make a lot more sense. I've attached a patch—let me know if you need anything else.

#9 @cliffseal
4 years ago

  • Keywords needs-refresh removed

#10 @rachelbaker
4 years ago

  • Keywords 4.6-early added

@cliffseal Thanks for the refresh.

#11 @SergeyBiryukov
4 years ago

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

In 37208:

Comments: Allow for default comment form action, /wp-comments-post.php, to be changed via the comment_form_defaults filter.

Props cliffseal.
Fixes #26841.

#12 @SergeyBiryukov
4 years ago

  • Milestone changed from Future Release to 4.6
Note: See TracTickets for help on using tickets.