[wp-trac] [WordPress Trac] #21546: Site Settings page is a hot mess
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 10 21:44:07 UTC 2012
#21546: Site Settings page is a hot mess
----------------------------+-----------------------------
Reporter: wonderboymusic | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Multisite | Version: 3.0
Severity: normal | Keywords: has-patch
----------------------------+-----------------------------
I found out just how bad this page is when debugging an issue related to
{{{WPLANG}}}. {{{WPLANG}}} is an option for a blog in your network
(overrides {{{WPLANG}}} in {{{wp-config.php}}}), but if you delete the
option on purpose or accidentally, there is no way of restoring it in the
admin.
Site Settings just loads your options table and POSTs back to itself. The
only reference to the original options map (the defaults) is in schema,
which WP has zero access to outside of upgrade.
I have abstracted the default options and the default "fat" options into
functions in {{{ms.php}}}. Also, when loading your Site Settings options -
if a default option is missing, I display it in the admin so you can save
it (it is populated with its default value).
I have also streamlined and condensed some code that was happening in and
around {{{populate_options()}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21546>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list