Changeset 54891 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php
- Timestamp:
- 11/29/2022 03:49:49 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php
r53760 r54891 530 530 if ( ! empty( $widget_object->widget_options['show_instance_in_rest'] ) ) { 531 531 // Use new stdClass so that JSON result is {} and not []. 532 $response['instance']['raw'] = empty( $instance ) ? new stdClass : $instance;532 $response['instance']['raw'] = empty( $instance ) ? new stdClass() : $instance; 533 533 } 534 534
Note: See TracChangeset
for help on using the changeset viewer.