[wp-trac] [WordPress Trac] #33117: Optional parameters in sanitize_post_field() aren't declared as optional.
WordPress Trac
noreply at wordpress.org
Sat Jul 25 02:18:34 UTC 2015
#33117: Optional parameters in sanitize_post_field() aren't declared as optional.
-------------------------------+-----------------------------
Reporter: morganestes | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 2.3
Severity: normal | Keywords:
Focuses: docs |
-------------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33117>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list