Make WordPress Core

Opened 16 years ago

Closed 13 years ago

Last modified 13 years ago

#7239 closed enhancement (wontfix)

Allow changing rule to post comments

Reported by: lilyfan's profile lilyfan Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.6
Component: Comments Keywords:
Focuses: 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 16 years ago.
Patch for wp-comments-post.php

Download all attachments as: .zip

Change History (9)

@lilyfan
16 years ago

Patch for wp-comments-post.php

#1 @matt
16 years ago

  • Milestone changed from 2.7 to 2.8

#2 @ryan
15 years ago

  • Component changed from General to Comments
  • Owner anonymous deleted

#3 @janeforshort
15 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
15 years ago

  • Milestone changed from Future Release to 2.9

#5 @Denis-de-Bernardy
15 years ago

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

#6 @solarissmoke
13 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
13 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
13 years ago

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