Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/wp-admin/includes/class-wp-ms-users-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ public function display_rows() {
}

?>
<tr class="<?php echo trim( $class ); ?>">
<tr id="user-<?php echo (int) $user->ID; ?>" class="<?php echo trim( $class ); ?>">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Casting here not necessary here

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't hurt though. Since WP_User::$ID doesn't have a PHP property type specified, technically someone could populate a $user->ID = '" onclick="alert(1)'.

<?php $this->single_row_columns( $user ); ?>
</tr>
<?php
Expand Down
Loading