Make WordPress Core

Opened 7 years ago

Closed 4 years ago

Last modified 4 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 7 years ago.
Patch for wp-comments-post.php

Download all attachments as: .zip

Change History (9)

@lilyfan7 years ago

Patch for wp-comments-post.php

comment:1 @matt7 years ago

  • Milestone changed from 2.7 to 2.8

comment:2 @ryan6 years ago

  • Component changed from General to Comments
  • Owner anonymous deleted

comment:3 @janeforshort6 years ago

  • Milestone changed from 2.8 to Future Release

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

comment:4 @Denis-de-Bernardy6 years ago

  • Milestone changed from Future Release to 2.9

comment:5 @Denis-de-Bernardy6 years ago

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

comment:6 @solarissmoke5 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.

comment:7 @solarissmoke4 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.

comment:8 @ocean904 years ago

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