Opened 10 years ago
Closed 10 years ago
#37955 closed enhancement (fixed)
Make it possible to whitelist URLs in check_comment()
| Reported by: | ocean90 | Owned by: | rachelbaker |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7 |
| Component: | Comments | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
Use case: #meta1776
There is currently no way to exclude URLs for the number of external links check.
One option might be to pass $comment to the comment_max_links_url filter. This would make it possible to re-check the comment and reduce $num_links.
Attachments (1)
Change History (5)
#1
@
10 years ago
- Keywords has-patch commit added; needs-patch removed
- Milestone Awaiting Review → 4.7
#2
@
10 years ago
In 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.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Adds the
$commentparameter to the comment_max_links_url filter