[wp-trac] [WordPress Trac] #10970: Remove 'siteurl' setting from options-general.php

WordPress Trac noreply at wordpress.org
Mon Feb 13 19:44:36 UTC 2023


#10970: Remove 'siteurl' setting from options-general.php
-------------------------+-----------------------------
 Reporter:  scribu       |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Permalinks   |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  administration
-------------------------+-----------------------------

Comment (by sabernhardt):

 [attachment:"10970-readonly.diff"] is messy, but it roughly shows my idea
 for preventing unintended changes on single sites. I think other
 contributors could add the script to enable the fields and disable the
 buttons (without reloading the page) better than I can. I did not attempt
 any field validation either.

 - The fields are `readonly` because I received validation errors when they
 were set to `disabled`.
 - If someone deactivates JS, clicking one of the buttons would reload the
 page with active URL fields (and no buttons).
 - A `WP_DISABLE_URL_CHANGES` constant could remove the URL settings
 entirely with a `true` value, either in `wp-config.php` or in a plugin.
 - The constant also could honor a `false` value and force the fields to
 remain editable.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/10970#comment:39>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list