We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ff7db4 commit a695820Copy full SHA for a695820
1 file changed
src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php
@@ -200,8 +200,9 @@ public function get_items( $request ) {
200
$current_theme = wp_get_theme();
201
$status = $request['status'];
202
203
- if ( 'active' === $status ) {
204
- $themes[] = $this->prepare_item_for_response( $current_theme, $request );
+ if ( array( 'active' ) === $status ) {
+ $prepared = $this->prepare_item_for_response( $current_theme, $request );
205
+ $themes[] = $this->prepare_response_for_collection( $prepared );
206
} else {
207
$active_themes = wp_get_themes();
208
0 commit comments