Skip to content

Commit

Permalink
Remove useless file read
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Feb 3, 2024
1 parent 4c9e78f commit ec7eb38
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions includes/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1254,8 +1254,6 @@ public function ajax_set_avatar() {

$friend = User::get_user_by_id( $user_id );

$image = file_get_contents( $_POST['avatar'] );

// Use WordPress functions to check the image dimensions.
$size = \wp_getimagesize( $_POST['avatar'] );
if ( ! $size ) {
Expand Down

0 comments on commit ec7eb38

Please sign in to comment.