[wp-trac] [WordPress Trac] #64581: Allow serialized options read-only view
WordPress Trac
noreply at wordpress.org
Sun Feb 1 22:55:10 UTC 2026
#64581: Allow serialized options read-only view
--------------------------------+-----------------------------
Reporter: anatolinicolae | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version: trunk
Severity: trivial | Keywords:
Focuses: ui, administration |
--------------------------------+-----------------------------
The options.php page currently overwrites an option value when it is
serialized with `'SERIALIZED DATA'`.
However, these values will most likely never be changed manually as it
would require users to deserialize, edit and serialize it back via some
manually crafted script, while it still does make sense to display the
proper value regardless for i.e. debugging purposes without looking up
keys in the DB.
Patch could be as simple as returning `$value = $option->option_value;` in
options.php assuming there's no further concerns with this page scope.
Keeping `$disabled = true;` would prevent manual editing, while having no
impact on eventual save.
Permissions would still apply and this page would only remain visible to
admins (not even linked anywhere AFAIK). There are no further security
concerns about the option value, as non-serialized options already expose
their values.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64581>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list