开发者 | ucfwebcom |
---|---|
更新时间 | 2021年3月4日 01:37 |
PHP版本: | 3.7.0 及以上 |
WordPress版本: | 5.7.0 |
版权: | GPLv3 or later |
版权网址: | 版权信息 |
http_request_host_is_external
filter. Hosts that start with 192. or 10. are checked against the allowed hosts based on a new security update WordPress introduced in 3.5.2 (https://github.com/WordPress/WordPress/commit/1ec392175ce5f0320072e7b195a8d091bccddefb). Unfortunately there is no setting available to say which hosts are allowed. :( This plugin gives you that option. The default option for comparing domains is a straight string compare. You have the option to allow the use of regular expressions, which can be used for things like allowing all subdomains to communicate with eachother. This is most helpful when trying to import media content from one WordPress instance to another from within an internal network.
WP-Allowed-Hosts
to the wp-content/plugins/
directoryThe setting is located under WP Admin's Setting > Allow Hosts. If you don't see it you are probably running a Network (multisite) version of wordpress and the plugin is enabled at the network level. Enabling at the Network level will take precedence.
create_function()
for better compatibility with newer versions of PHP.