Opened 18 months ago
Closed 18 months ago
#58322 closed defect (bug) (fixed)
Docblock update for `get_sample_permalink_html` hook
Reported by: | Enchiridion | Owned by: | audrasjb |
---|---|---|---|
Milestone: | 6.3 | Priority: | normal |
Severity: | normal | Version: | 2.9 |
Component: | Permalinks | Keywords: | has-patch commit |
Focuses: | docs | Cc: |
Description
The docblock for the get_sample_permalink_html
filter has 2 errors in it. Both $new_title
and $new_slug
can nulls as well as strings. This updates the docs for it.
Attachments (1)
Change History (5)
#2
@
18 months ago
Hi there, thanks for the ticket!
Indeed, these values can be null
if get_sample_permalink_html()
was called with default parameters, and they are documented as string|null
in the function DocBlock.
The patch looks good.
Note: See
TracTickets for help on using
tickets.
Introduced in 2.9 via [34347], see #33927.