Opened 11 years ago
Closed 11 years ago
#33117 closed defect (bug) (fixed)
Optional parameters in sanitize_post_field() aren't declared as optional.
| Reported by: | morganestes | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | Posts, Post Types | Version: | 2.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs |
Description
The docblock and internals of sanitize_post_field() say the $context parameter has a default, but the function signature has it as a required parameter. Since the other related functions have a default value, adding one here makes it clearer what is happening here.
Attachments (2)
Change History (7)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@morganestes: We'd also need a changelog entry in the DocBlock for making the parameter optional.