[wp-trac] [WordPress Trac] #15636: "New User Default Role" dropdown should order by privilege level
WordPress Trac
noreply at wordpress.org
Wed Dec 5 16:04:20 UTC 2012
#15636: "New User Default Role" dropdown should order by privilege level
--------------------------+-----------------------------
Reporter: novasource | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Future Release
Component: UI | Version: 3.0.2
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+-----------------------------
Comment (by mario-siteground):
We have some sample solution of the problem, but there is one
controversial point. I apply the two patches.
- one with generic sort - all roles are sorted by capability count (we
could discuss this criteria as we need some balance between productivity
and end functionality)
- second, separating them by type (default, custom). then sorting by
capabilities is applied - first to default roles (which results in the
order that we already know) and then on the custom.
The problem is that the function `wp_dropdown_roles` reorders them without
the filter and places the default user role as first option element in the
select, which is probably done for backwards compatibility, where
`selected="selected"` could work in other way then expected. What would be
the best solution for that matter?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15636#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list