WordPress / create-block-theme

A WordPress plugin to create block themes
https://wordpress.org/plugins/create-block-theme/
GNU General Public License v2.0
310 stars 44 forks source link

Removed unnecessary filter rejecting unsafe URLs #588

Closed pbking closed 2 months ago

pbking commented 2 months ago

It seems that the filter to allow unsafe URLs was unnecessary. I believe it was added to get the plugin to work as expected in a docker container (wp-env) and another solution was ultimately used to make that work anyway.

With this filter removed there should be no more problems as described in #584

Fixes #584

NOTE: I was unable to reproduce this with the steps provided in #584. However I'm sure it could be triggered given the function could be constructed multiple times with that logic.

To Test:

Since this was originally added to support the plugin in a docker environment (wp-env) that environment was used to verify that it is working as expected.