[wp-trac] [WordPress Trac] #33117: Optional parameters in sanitize_post_field() aren't declared as optional.
WordPress Trac
noreply at wordpress.org
Sat Sep 12 15:45:16 UTC 2015
#33117: Optional parameters in sanitize_post_field() aren't declared as optional.
-------------------------------+-----------------------------
Reporter: morganestes | Owner: wonderboymusic
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.4
Component: Posts, Post Types | Version: 2.3
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: docs
-------------------------------+-----------------------------
Changes (by wonderboymusic):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"34081"]:
{{{
#!CommitTicketReference repository="" revision="34081"
`sanitize_post()`: the default value for `$context` is 'display'. The
documentation says the default for `sanitize_post_field()` is 'display',
but there is no default for the arg. Make the argument: `$context =
'default'`.
Props morganestes.
Fixes #33117.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33117#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list