Opened 9 months ago
Closed 9 months ago
#61288 closed enhancement (fixed)
Docstrings don't reflect function return type change.
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.6 | Priority: | normal |
Severity: | trivial | Version: | 6.5.3 |
Component: | Shortcodes | Keywords: | dev-feedback |
Focuses: | Cc: |
Description
The git commit 10b9642 changed the return type of shortcode_parse_atts
from array|string
to array
.
The docstring for the pre_do_shortcode_tag
filter in line 423 and the do_shortcode_tag
filter in line 442 state that attr
(the return value of shortcode_parse_atts
) could be array or string.
Changing the docstring for those two filters would make it clearer to developers that no type checking for array oder string is neccessary.
Change History (2)
Note: See
TracTickets for help on using
tickets.
In 58197: