Opened 6 years ago
Closed 6 years ago
#32981 closed enhancement (duplicate)
Add filter before checking comment in wp-comments-post.php
Reported by: | sgrant | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.3 |
Component: | Comments | Keywords: | |
Focuses: | Cc: |
Description
Hello!
We'd like to allow our users to submit WooCommerce ratings without being forced to write some text. Some people find this intimidating (they like or dislike the product, but can't or won't say why).
I've attached a patch that adds a filter immediately before the empty string check in wp-comments-post.php. This allows us to hook in and change an empty field to something simple (say, a single space) while maintaining WooCommerce's rating metadata. Is this reasonable for core?
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
Add a filter before the empty string comment check.