[wp-trac] [WordPress Trac] #50572: Remove confusing upper case for option names on Edit Site: Settings screen

WordPress Trac noreply at wordpress.org
Mon Jul 6 14:43:33 UTC 2020


#50572: Remove confusing upper case for option names on Edit Site: Settings screen
-------------------------------------------+-----------------------------
 Reporter:  SergeyBiryukov                 |      Owner:  (none)
     Type:  defect (bug)                   |     Status:  new
 Priority:  normal                         |  Milestone:  Awaiting Review
Component:  Networks and Sites             |    Version:
 Severity:  normal                         |   Keywords:
  Focuses:  ui, administration, multisite  |
-------------------------------------------+-----------------------------
 1. Go to Network Admin → All Sites.
 2. Select a site, click "Edit".
 3. Go to the Settings tab.

 You'll see the list of option names displayed in a "readable" way:
 * Users Can Register
 * Admin Email
 * Start Of Week

 This is done via `ucwords( str_replace( '_', ' ', $option->option_name )
 )`.

 There are two problems with this:
 * On non-English sites, it looks like some parts of the UI are not
 translated.
 * It doesn't make sense for options like "Bp-xprofile-base-group-name".

 It would be better to just display the original option names instead:
 * `users_can_register`
 * `admin_email`
 * `start_of_week`

 This would be consistent with the `/wp-admin/options.php` screen on single
 site.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50572>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list