Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: #10548 AtD / Gutenberg: request is made to AtD when module is de…
…activated (#10566) Fixes #10548 Fixes #10495 Fixes #10558 #### Changes proposed in this Pull Request: * Instead of using `get_initial_state()` to shorthand how we get module activation data for block visibility this PR manually builds the needed data. * `get_initial_state()` calls `get_modules` from `Jetpack_Core_API_Module_List_Endpoint` which doesn't respect module activation and [includes modules files](https://github.com/Automattic/jetpack/blame/496bebd5b1890666afe4fc79f52fd94353d88539/_inc/lib/class.core-rest-api-endpoints.php#L2813) which enqueues JS files ¯\_(ツ)_/¯ #### Testing instructions: * Follow the steps in #10548 * Ideally you wont see any JS errors #### Proposed changelog entry for your changes: * Fixes an issue where deactivating ATD causes the post editor to throw JS errors
- Loading branch information