Make WordPress Core

Opened 13 years ago

Closed 10 years ago

Last modified 10 years ago

#26841 closed enhancement (fixed)

Add Filter for Comment Form Action

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

Description

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 13 years ago.
Adds filter for form action
26841.2.diff (1.2 KB ) - added by cliffseal 11 years ago.

Download all attachments as: .zip

Change History (14)

@cliffseal
13 years ago

Adds filter for form action

#2 @SergeyBiryukov
12 years ago

  • Version trunk3.8

#3 @cliffseal
11 years ago

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

#4 @rachelbaker
11 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
11 years ago

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

#6 @rachelbaker
11 years ago

  • Keywords needs-refresh added; reporter-feedback removed
  • Milestone Awaiting ReviewFuture Release

@cliffseal That would be super!

#7 @rachelbaker
11 years ago

  • Owner set to cliffseal
  • Status newassigned

@cliffseal
11 years ago

#8 @cliffseal
11 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
11 years ago

  • Keywords needs-refresh removed

#10 @rachelbaker
11 years ago

  • Keywords 4.6-early added

@cliffseal Thanks for the refresh.

#11 @SergeyBiryukov
10 years ago

  • Resolutionfixed
  • Status assignedclosed

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
10 years ago

  • Milestone Future Release4.6
Note: See TracTickets for help on using tickets.