Ticket #5784: 5784.diff

File 5784.diff, 1.7 KB (added by markjaquith, 4 years ago)

Another solution

  • wp-admin/users.php

     
    291291<?php endif; ?> 
    292292</tr> 
    293293<tr class="thead"> 
    294         <th><input type="checkbox" onclick="checkAllUsers('<?php echo $role; ?>')"/></th> 
     294        <th><input type="checkbox" onclick="checkAllUsers('<?php echo $role; ?>')"/> </th> 
    295295        <th><?php _e('ID') ?></th> 
    296296        <th><?php _e('Username') ?></th> 
    297297        <th><?php _e('Name') ?></th> 
    298298        <th><?php _e('E-mail') ?></th> 
    299299        <th><?php _e('Website') ?></th> 
     300        <th><?php _e('Posts created') ?></th> 
    300301        <th colspan="2" style="text-align: center"><?php _e('Actions') ?></th> 
    301302</tr> 
    302303</tbody> 
  • wp-admin/includes/template.php

     
    429429                $short_url =  substr( $short_url, 0, 32 ).'...'; 
    430430        $numposts = get_usernumposts( $user_object->ID ); 
    431431        $r = "<tr id='user-$user_object->ID'$style> 
    432                 <td><input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' /> <label for='user_{$user_object->ID}'>{$user_object->ID}</label></td> 
     432                <td><input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' /></td> 
     433                <td><label for='user_{$user_object->ID}'>{$user_object->ID}</label></td> 
    433434                <td><label for='user_{$user_object->ID}'><strong>$user_object->user_login</strong></label></td> 
    434435                <td><label for='user_{$user_object->ID}'>$user_object->first_name $user_object->last_name</label></td> 
    435436                <td><a href='mailto:$email' title='" . sprintf( __('e-mail: %s' ), $email ) . "'>$email</a></td>