Changeset 61429 for trunk/src/wp-includes/rest-api.php
- Timestamp:
- 01/05/2026 04:31:14 AM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/rest-api.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r61178 r61429 953 953 break 2; 954 954 } 955 $ref[ $next ] = isset( $ref[ $next ] ) ? $ref[ $next ] :array();955 $ref[ $next ] = $ref[ $next ] ?? array(); 956 956 $ref = &$ref[ $next ]; 957 957 } … … 3089 3089 3090 3090 if ( $is_array_type ) { 3091 $check = isset( $schema['items'] ) ? $schema['items'] :array();3091 $check = $schema['items'] ?? array(); 3092 3092 } elseif ( $is_object_type ) { 3093 3093 if ( isset( $schema['properties'][ $key ] ) ) { … … 3418 3418 $error->get_all_error_data(), 3419 3419 static function ( $status, $error_data ) { 3420 return is_array( $error_data ) && isset( $error_data['status'] ) ? $error_data['status'] :$status;3420 return $error_data['status'] ?? $status; 3421 3421 }, 3422 3422 500
Note: See TracChangeset
for help on using the changeset viewer.