Changeset 10268
- Timestamp:
- 12/30/2008 07:38:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r10246 r10268 1806 1806 $short_url = substr( $short_url, 0, 32 ).'...'; 1807 1807 $numposts = get_usernumposts( $user_object->ID ); 1808 $checkbox = ''; 1809 // Check if the user for this row is editable 1808 1810 if ( current_user_can( 'edit_user', $user_object->ID ) ) { 1811 // Set up the user editing link 1812 // TODO: make profile/user-edit determination a seperate function 1809 1813 if ($current_user->ID == $user_object->ID) { 1810 1814 $edit_link = 'profile.php'; … … 1813 1817 } 1814 1818 $edit = "<strong><a href=\"$edit_link\">$user_object->user_login</a></strong><br />"; 1819 1820 // Set up the hover actions for this user 1815 1821 $actions = array(); 1816 1822 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; … … 1826 1832 } 1827 1833 $edit .= '</div>'; 1834 1835 // Set up the checkbox (because the user is editable, otherwise its empty) 1836 $checkbox = "<input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' />"; 1837 1828 1838 } else { 1829 1839 $edit = '<strong>' . $user_object->user_login . '</strong>'; … … 1845 1855 switch ($column_name) { 1846 1856 case 'cb': 1847 $r .= "<th scope='row' class='check-column'> <input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' /></th>";1857 $r .= "<th scope='row' class='check-column'>$checkbox</th>"; 1848 1858 break; 1849 1859 case 'username':
Note: See TracChangeset
for help on using the changeset viewer.