Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mobile] - Remove themes from supported endpoints #63183

Merged
merged 3 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/react-native-editor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ For each user feature we should also add a importance categorization label to i
- [*] Prevent hiding the keyboard when creating new list items [#62446]
- [*] Fix issue when pasting HTML content [#62588]
- [**] Add support prefix transforms [#62576]
- [*] Remove themes from supported endpoints [#63183]

## 1.120.1

Expand Down
8 changes: 7 additions & 1 deletion packages/react-native-editor/src/api-fetch-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ import { applyFilters } from '@wordpress/hooks';
const SUPPORTED_METHODS = [ 'GET', 'POST' ];
// Please add only wp.org API paths here!
const SUPPORTED_ENDPOINTS = {
// Temporarily disabling themes endpoint calls within the editor.
// Issue: https://github.com/wordpress-mobile/WordPress-Android/issues/21034
// The editor's GET requests to the themes endpoint are not functioning as expected.
// This is likely due to the method used for performing GET requests within the host Android app.
// TODO: Investigate and resolve the issue with GET requests from the editor.
// Until then, themes endpoint calls are disabled to prevent unexpected behavior.
GET: [
/wp\/v2\/(media|categories|blocks|themes)\/?\d*?.*/i,
/wp\/v2\/(media|categories|blocks)\/?\d*?.*/i,
/wp\/v2\/search\?.*/i,
/oembed\/1\.0\/proxy\?.*/i,
],
Expand Down
Loading