mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
Reverse the order of roles in wp_dropdown_roles(). Reset to 'subscriber' when the default role is removed and when a save is invalid.
props garyc40, wonderboymusic. fixes #14578. git-svn-id: https://develop.svn.wordpress.org/trunk@25695 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -193,6 +193,9 @@ class WP_Roles {
|
||||
|
||||
if ( $this->use_db )
|
||||
update_option( $this->role_key, $this->roles );
|
||||
|
||||
if ( get_option( 'default_role' ) == $role )
|
||||
update_option( 'default_role', 'subscriber' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user