[wp-trac] [WordPress Trac] #25840: Feature Request: WP_ACCESSIBLE_HOSTS as option
WordPress Trac
noreply at wordpress.org
Tue Nov 5 21:46:14 UTC 2013
#25840: Feature Request: WP_ACCESSIBLE_HOSTS as option
-----------------------------+-----------------------------
Reporter: xFireFartx | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP | Version: 3.7.1
Severity: normal | Keywords:
-----------------------------+-----------------------------
Currently WP_ACCESSIBLE_HOSTS is defined as a constant. It would be great
if this is a wordpress option (or something equivalent) so you can change
it at runtime. If you have a multisite installation and need to add
domains to the whitelist you must reload the whole installation to enable
them. Writing a simple plugin for this is also not possible since
constants can not be redefined.
My suggestion:
1) Store a site_option for mutlisites. This should contain a general
whitelist for all blogs
2) Store a option per blog to contain additional whitelists for this
single blog
3) Make it configurable via the admin interface (single textbox to enter
the domains)
4) In the block_request function
(https://github.com/WordPress/WordPress/blob/master/wp-includes/class-
http.php#L507) the 2 options should be merged and handled like the
constant
This way you could manage the whitelist at runtime.
What do you think about this?
Chris
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25840>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list