[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 08:58:55 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: normal | Keywords: dev-feedback
Focuses: rest-api |
--------------------------+-----------------------------
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>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list