#63341 closed defect (bug) (fixed)
siteurl and home fields not disabled in wp-admin/options.php when defined in wp-config.php
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Options, Meta APIs | Keywords: | has-patch has-screenshots |
Focuses: | administration | Cc: |
Description
When visiting the wp-admin/options.php
page, the siteurl
and home
fields remain editable, even if the WP_SITEURL
and WP_HOME
constants are defined in wp-config.php
.
Expected Behavior:
These fields should be disabled (read-only) just like they are on the General Settings page (wp-admin/options-general.php
) when the constants are defined.
References:
- Current behavior on
options.php
: https://tinyurl.com/2b5aw5jd - Expected behavior on General Settings page: https://tinyurl.com/26yfco7u
Change History (8)
This ticket was mentioned in PR #8732 on WordPress/wordpress-develop by @dilipbheda.
3 weeks ago
#1
This ticket was mentioned in PR #8733 on WordPress/wordpress-develop by @Presskopp.
3 weeks ago
#2
@dilipbheda commented on PR #8732:
3 weeks ago
#4
I'm closing this PR as another contributor has submitted a new one with more optimized code.
New PR https://github.com/WordPress/wordpress-develop/pull/8733
#6
@
45 hours ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 60237:
@SergeyBiryukov commented on PR #8733:
22 hours ago
#8
Thanks for the PR! Merged in r60237.
If a setting is defined in wp-config.php, disable the respective field.
Trac ticket: 63341