Make WordPress Core

Opened 10 years ago

Closed 7 years ago

Last modified 7 years ago

#7239 closed enhancement (wontfix)

Allow changing rule to post comments

Reported by: lilyfan Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.6
Component: Comments Keywords:
Focuses: Cc:


The required fields for comments form is defined at wp-comments-post.php and is hard coded. This patch provides a filter to change rules posting comments. For example, name is required, rather email or website is required.

Attachments (1)

comments-post.patch (656 bytes) - added by lilyfan 10 years ago.
Patch for wp-comments-post.php

Download all attachments as: .zip

Change History (9)

10 years ago

Patch for wp-comments-post.php

#1 @matt
10 years ago

  • Milestone changed from 2.7 to 2.8

#2 @ryan
9 years ago

  • Component changed from General to Comments
  • Owner anonymous deleted

#3 @janeforshort
9 years ago

  • Milestone changed from 2.8 to Future Release

Punting to be evaluated in next development cycle due to time constraints.

#4 @Denis-de-Bernardy
9 years ago

  • Milestone changed from Future Release to 2.9

#5 @Denis-de-Bernardy
9 years ago

  • Keywords needs-patch added; has-patch removed
  • Milestone changed from 2.9 to Future Release

#6 @solarissmoke
7 years ago

  • Keywords close added; needs-patch removed

I think the pre_comment_on_post action would let you handle this. You just turn off the Wordpress name/email check and hook your own.

#7 @solarissmoke
7 years ago

  • Keywords close removed
  • Resolution set to wontfix
  • Status changed from new to closed

Like I said before, I think there are enough existing hooks to let you achieve this.

#8 @ocean90
7 years ago

  • Milestone Future Release deleted
Note: See TracTickets for help on using tickets.