[wp-trac] [WordPress Trac] #44963: PHP Notice: Undefined variable in wp-includes/rest-api.php $args['type']
WordPress Trac
noreply at wordpress.org
Wed Sep 19 21:07:02 UTC 2018
#44963: PHP Notice: Undefined variable in wp-includes/rest-api.php $args['type']
-----------------------------------------+------------------------------
Reporter: weblogma | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: minor | Resolution:
Keywords: has-patch reporter-feedback | Focuses: rest-api
-----------------------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: dev-feedback has-patch => has-patch reporter-feedback
Old description:
> This problem occur in rest_validate_value_from_schema and
> rest_sanitize_value_from_schema functions.
> Please add
> {{{#!php
> <?php
> #example:
> if ( isset($args['type']) && 'array' === $args['type'] )...
> }}}
> isset($args['type']) before *** === $args['type']" for fixed these.
New description:
This problem occur in rest_validate_value_from_schema and
rest_sanitize_value_from_schema functions.
Please add
{{{#!php
<?php
#example:
if ( isset($args['type']) && 'array' === $args['type'] )...
}}}
`isset($args['type'])` before `*** === $args['type']` for fixed these.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44963#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list