Skip to content

Commit

Permalink
Always return an empty array for connections
Browse files Browse the repository at this point in the history
  • Loading branch information
manzoorwanijk committed May 13, 2024
1 parent a01d0e2 commit 1ee81d7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions projects/packages/publicize/src/class-publicize.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public function get_connections( $service_name, $_blog_id = false, $_user_id = f
/**
* Get all connections for a specific user.
*
* @return array|false
* @return array
*/
public function get_all_connections_for_user() {
$connections = $this->get_all_connections();
Expand Down Expand Up @@ -269,11 +269,8 @@ public function get_all_connections_for_user() {
}
}
}

return $connections_to_return;
}

return false;
return $connections_to_return;
}

/**
Expand Down

0 comments on commit 1ee81d7

Please sign in to comment.