[wp-trac] [WordPress Trac] #28344: Remove "Week Starts On" setting UI
WordPress Trac
noreply at wordpress.org
Mon Sep 7 12:50:39 UTC 2015
#28344: Remove "Week Starts On" setting UI
--------------------------------+---------------------------------
Reporter: markjaquith | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: 4.4
Component: Options, Meta APIs | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: ui, administration
--------------------------------+---------------------------------
Comment (by swissspidy):
[attachment:28344.diff 28344.diff] implements what @dd32 suggested. What
it does:
* Adds a ''Locale'' heading to the settings in Options -> General
* Moves the `_x( '1', 'start of week' )` call from `wp-
admin/includes/schema.php` to `wp-includes/locale.php`
* Adds a `pre_option_start_of_week` filter using a new private function
`_wp_get_start_of_week`
* Unhook `delete_get_calendar_cache` from `update_option_start_of_week`
* Removes `start_of_week` from `$whitelist_options` in `wp-
admin/options.php`
Please let me know what parts could be improved.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28344#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list