Opened 3 years ago
Closed 3 years ago
#58322 closed defect (bug) (fixed)
Docblock update for `get_sample_permalink_html` hook
| Reported by: | Enchiridion | Owned by: | audrasjb |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.3 |
| Component: | Permalinks | Version: | 2.9 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: | docs |
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
@
3 years 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Introduced in 2.9 via [34347], see #33927.