- Timestamp:
- 07/27/2020 06:44:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-request.php
r48102 r48642 409 409 410 410 foreach ( $order as $type ) { 411 if ( array_key_exists( $key, $this->params[ $type ] ) ) {411 if ( is_array( $this->params[ $type ] ) && array_key_exists( $key, $this->params[ $type ] ) ) { 412 412 return true; 413 413 } … … 434 434 435 435 foreach ( $order as $type ) { 436 if ( 'defaults' !== $type && array_key_exists( $key, $this->params[ $type ] ) ) {436 if ( 'defaults' !== $type && is_array( $this->params[ $type ] ) && array_key_exists( $key, $this->params[ $type ] ) ) { 437 437 $this->params[ $type ][ $key ] = $value; 438 438 $found_key = true;
Note: See TracChangeset
for help on using the changeset viewer.