Fix notice. Props jeremyclarke. see #8764
git-svn-id: https://develop.svn.wordpress.org/trunk@10324 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
346ad48bb8
commit
5abca0328d
@ -257,11 +257,10 @@ wp_dropdown_roles($user_role);
|
||||
|
||||
// print the 'no role' option. Make it selected if the user has no role yet.
|
||||
if ( $user_role )
|
||||
$role_list .= '<option value="">' . __('— No role for this blog —') . '</option>';
|
||||
echo '<option value="">' . __('— No role for this blog —') . '</option>';
|
||||
else
|
||||
$role_list .= '<option value="" selected="selected">' . __('— No role for this blog —') . '</option>';
|
||||
|
||||
echo $role_list;?>
|
||||
echo '<option value="" selected="selected">' . __('— No role for this blog —') . '</option>';
|
||||
?>
|
||||
</select></td></tr>
|
||||
<?php endif; //!$is_profile_page ?>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user