WordPress.org

Make WordPress Core

Ticket #8764: jan6-fix-user-edit-notice.diff

File jan6-fix-user-edit-notice.diff, 807 bytes (added by jeremyclarke, 5 years ago)

fix the php notice caused by earlier patch.

  • wp-admin/user-edit.php

     
    257257 
    258258// print the 'no role' option. Make it selected if the user has no role yet. 
    259259if ( $user_role ) 
    260         $role_list .= '<option value="">' . __('&mdash; No role for this blog &mdash;') . '</option>'; 
     260        echo '<option value="">' . __('&mdash; No role for this blog &mdash;') . '</option>'; 
    261261else 
    262         $role_list .= '<option value="" selected="selected">' . __('&mdash; No role for this blog &mdash;') . '</option>'; 
    263  
    264 echo $role_list;?> 
     262        echo '<option value="" selected="selected">' . __('&mdash; No role for this blog &mdash;') . '</option>'; 
     263?> 
    265264</select></td></tr> 
    266265<?php endif; //!$is_profile_page ?> 
    267266