From 919d3905d9dcb4b2ac132aead194a57d3fd65c99 Mon Sep 17 00:00:00 2001 From: Fabio Quarantini Date: Fri, 12 Feb 2021 13:50:42 +0100 Subject: [PATCH] Update themes.md Status value is "active" and not "1". See "class-wp-rest-themes-controller.php" (Ln 91): if ( isset( $registered['status'], $request['status'] ) && in_array( 'active', $request['status'], true ) ) { $active_theme = wp_get_theme(); $active_theme = $this->prepare_item_for_response( $active_theme, $request ); $themes[] = $this->prepare_response_for_collection( $active_theme ); } --- reference/themes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/themes.md b/reference/themes.md index d324b6d..64555cc 100644 --- a/reference/themes.md +++ b/reference/themes.md @@ -244,7 +244,7 @@

Limit result set to themes assigned one or more statuses.

- Required: 1 + Required: active