[wp-trac] [WordPress Trac] #38591: Filter for languages select on profile-page

WordPress Trac noreply at wordpress.org
Mon Oct 31 14:54:29 UTC 2016


#38591: Filter for languages select on profile-page
-------------------------+------------------------------
 Reporter:  neoxx        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Users        |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  administration
-------------------------+------------------------------

Comment (by neoxx):

 Hmm, I think with the current implementation of `wp_dropdown_languages()`,
 finding out if the select holds any options is only possible by an ugly
 string comparison.

 Therefore a filter in `wp_dropdown_languages` would not help in case
 `$languages` is cleared by said filter to avoid extra markup in user-
 edit.php. Changing the implementation of `wp_dropdown_languages()` to
 something that can be captured with `empty()` would help, though.

 I'm not sure what's the policy on selects, are they supposed to return an
 empty select `<select></select>` w/o any option at all or would an empty
 string be alright? If so, what's recommended - empty string, null or
 false?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38591#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list