[wp-trac] [WordPress Trac] #37955: Make it possible to whitelist URLs in check_comment()

WordPress Trac noreply at wordpress.org
Fri Oct 7 15:53:48 UTC 2016


#37955: Make it possible to whitelist URLs in check_comment()
------------------------------+------------------
 Reporter:  ocean90           |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  4.7
Component:  Comments          |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------

Comment (by rachelbaker):

 In [attachment:37955.diff] I added the `$comment` parameter to the
 `comment_max_links` filter.  This allows the comment_content to be
 included in hooked functions.

 @ocean90 This was the best option I could see to solve for your provided
 (and likely somewhat common) use-case.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37955#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list