#6381 closed defect (bug) (fixed)
Filter docblock not parsed / doesn't exist on DevHub
Reported by: | audrasjb | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Developer Hub | Keywords: | |
Cc: |
Description
It looks like the xmlrpc_element_limit
filter doesn't exist on DevHub.
I can't figure out what's wrong with the docblock declaration… or maybe it's just because of the conditional?
That's annoying, because there is a link (via a @see
mention) to this filter in the following DevHub link: https://developer.wordpress.org/reference/hooks/xmlrpc_enabled/
If this filter can't be parsed because of the conditional, should we simply address the issue by removing the @see
mention from the xmlrpc_enabled
function DocBlock?
Change History (4)
#1
in reply to:
↑ description
;
follow-up:
↓ 2
@
2 years ago
#2
in reply to:
↑ 1
@
2 years ago
Replying to SergeyBiryukov:
These two are the only filters in the
wp-includes/IXR
directory. I think the conditional is not relevant here, but the directory is simply excluded from parsing. Looking at the source, that is indeed the case.
...
I think the solution would be to remove the exclusion, so that the directory is parsed too.
I agree, if we've adopted it, and it doesn't have it's own code reference / we've modified it enough, we might as well just include it in our code reference.
#3
@
2 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 11944:
Replying to audrasjb:
Thanks for catching this! The same applies to the xmlrpc_chunk_parsing_size filter.
These two are the only filters in the
wp-includes/IXR
directory. I think the conditional is not relevant here, but the directory is simply excluded from parsing. Looking at the source, that is indeed the case.I think the solution would be to remove the exclusion, so that the directory is parsed too. Apparently it was considered an external library without any filters, but that is not the case, it's an adopted library and does include some hooks.