Skip to content

do not modify rest responses, belonging to the WPML plugin#156

Open
sweber83 wants to merge 1 commit intohumanmade:developfrom
360vier:wpml-compat
Open

do not modify rest responses, belonging to the WPML plugin#156
sweber83 wants to merge 1 commit intohumanmade:developfrom
360vier:wpml-compat

Conversation

@sweber83
Copy link

Fixes an issue, where WPMLs dashboard.js does not expect the _links object in its rest responses.

When opening the WPML dashboard under wp-admin/admin.php?page=tm%2Fmenu%2Fmain.php we get this js error.

TypeError: Cannot read properties of undefined (reading 'indexOf')
    at dashboard.js?ver=473900:1:40119
    at Array.filter (<anonymous>)
    at dashboard.js?ver=473900:1:40074
    at node-modules.js?ver=473900:2:57886
    at h (node-modules.js?ver=473900:2:56760)
    at node-modules.js?ver=473900:2:58019
    at h (node-modules.js?ver=473900:2:56760)
    at dashboard.js?ver=473900:1:452595
    at node-modules.js?ver=473900:2:255684
    at e (node-modules.js?ver=473900:2:287402)

Fixes an issue, where WPMLs dashboard.js does not expect the _links object in its rest responses.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant