← All changes
|
_inc/lib/core-api/class-wpcom-rest-field-controller.php
+1
-1
12.7.3
→
16.3-a.1
View file →
| @@ -128,9 +128,9 @@ | ||
| 128 | 128 | return $schema['default']; |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | // If you have something more complicated, use $schema['default']. |
| 132 | - switch ( isset( $schema['type'] ) ? $schema['type'] : 'null' ) { | |
| 132 | + switch ( $schema['type'] ?? 'null' ) { | |
| 133 | 133 | case 'string': |
| 134 | 134 | return ''; |
| 135 | 135 | case 'integer': |
| 136 | 136 | case 'number': |