#35908 closed defect (bug) (fixed)
Documentation of `pre_comment_content` declares wrong variable type information
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | minor | Version: | 3.8 |
Component: | Comments | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
Super simple, but I just noticed that the documentation for the pre_comment_content
filter says the filter returns an int
when in fact it returns a string
.
Trivial patch attached.
Attachments (2)
Change History (6)
#1
follow-up:
↓ 2
@
8 years ago
- Keywords needs-patch added; has-patch removed
- Milestone changed from Awaiting Review to 4.5
@meitar Thanks for the patch, could you update it to include the two filters above and below pre_comment_content
That is in that same wp_filter_comment()
function both the filters pre_comment_user_agent
and pre_comment_user_ip
below should also both be string
#2
in reply to:
↑ 1
@
8 years ago
- Keywords has-patch added; needs-patch removed
:) LOL, tunnel vision. I didn't event notice those because tunnel vision on this project, I don't need those fields. But yes, I added a new patch. Thanks for catching those.
Note: See
TracTickets for help on using
tickets.
Correct type information for filter hook return value.