Skip to content

Commit

Permalink
Make sure the ID in the database is an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbetz committed Jul 6, 2012
1 parent c654476 commit 36f0879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-bulk-user-table.php
Expand Up @@ -34,7 +34,7 @@ function column_username($item){
if ( get_current_user_id() == $item->ID ) {
$actions['edit'] = '<a href="' . admin_url('profile.php') . '">Edit</a>';
} elseif ( current_user_can('edit_users') ) {
$actions['edit'] = '<a href="' . add_query_arg( 'user_id', $item->ID, admin_url('user-edit.php') ) . '">Edit</a>';
$actions['edit'] = '<a href="' . add_query_arg( 'user_id', intval( $item->ID ), admin_url('user-edit.php') ) . '">Edit</a>';
}

$login = esc_attr( $item->user_login );
Expand Down

0 comments on commit 36f0879

Please sign in to comment.