Opened 8 years ago
Closed 8 years ago
#33117 closed defect (bug) (fixed)
Optional parameters in sanitize_post_field() aren't declared as optional.
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 2.3 |
Component: | Posts, Post Types | Keywords: | has-patch |
Focuses: | docs | Cc: |
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.
@morganestes: We'd also need a changelog entry in the DocBlock for making the parameter optional.