diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 3c79d43b37..a4672fdbe0 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -821,19 +821,21 @@ function parent_dropdown( $default = 0, $parent = 0, $level = 0, $post = null ) * @param string $selected Slug for the role that should be already selected. */ function wp_dropdown_roles( $selected = '' ) { - $p = ''; $r = ''; $editable_roles = array_reverse( get_editable_roles() ); foreach ( $editable_roles as $role => $details ) { $name = translate_user_role($details['name'] ); - if ( $selected == $role ) // preselect specified role - $p = "\n\t"; - else - $r .= "\n\t"; + // preselect specified role + if ( $selected == $role ) { + $r .= "\n\t"; + } else { + $r .= "\n\t"; + } } - echo $p . $r; + + echo $r; } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index f7e93aa587..40ac767a52 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-40322'; +$wp_version = '4.8-alpha-40323'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.