[wp-trac] [WordPress Trac] #32981: Add filter before checking comment in wp-comments-post.php
WordPress Trac
noreply at wordpress.org
Mon Jul 13 18:07:06 UTC 2015
#32981: Add filter before checking comment in wp-comments-post.php
-------------------------+-----------------------------
Reporter: sgrant | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
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?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32981>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list