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

Disable networking by default #755

Closed
adamziel opened this issue Nov 19, 2023 · 0 comments · Fixed by #812
Closed

Disable networking by default #755

adamziel opened this issue Nov 19, 2023 · 0 comments · Fixed by #812

Comments

@adamziel
Copy link
Collaborator

#724 introduced support for wp_safe_remote_get() request and enabled it by default on playground.wordpress.net. The problem is, all the requests block rendering of WordPress pages and noticeably slow down the site. Let's disable it by default for a lightweight user experience, and then add an easy way to enable it, for example in the configuration modal.

adamziel added a commit that referenced this issue Nov 27, 2023
…to enable it (#812)

Disables the network support by default and adds a UI control to
enable it.

Why?

#724 introduced
support for wp_safe_remote_get() request and enabled it by default on
playground.wordpress.net. The problem is, all the requests block
rendering of WordPress pages and noticeably slow down the site. Let's
disable it by default for a lightweight user experience, and then add an
easy way to enable it, for example in the configuration modal.

Closes #755

## Testing Instructions

* Go to http://localhost:5400/website-server/?url=/wp-admin/plugin-install.php
* Confirm the plugins aren't loaded and you see a communicative error message
* Go to the settings modal
* Enable the network support
* Confirm the plugins are loaded now

<img width="1121" alt="CleanShot 2023-11-27 at 17 10 45@2x"
src="https://github.com/WordPress/wordpress-playground/assets/205419/ea95b783-d7a1-45c6-ab95-90b5c8ec6ce4">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant