Opened 5 years ago

Closed 2 years ago

Last modified 22 months ago

#7239 closed enhancement (wontfix)

Allow changing rule to post comments

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

Description

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

Download all attachments as: .zip

Change History (9)

lilyfan5 years ago

Patch for wp-comments-post.php

comment:1   matt5 years ago

  • Milestone changed from 2.7 to 2.8

comment:2   ryan4 years ago

  • Component changed from General to Comments
  • Owner anonymous deleted
  • Milestone changed from 2.8 to Future Release

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

  • Milestone changed from Future Release to 2.9
  • Keywords needs-patch added; has-patch removed
  • Milestone changed from 2.9 to Future Release
  • 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.

  • 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.

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