@@ -87,6 +87,9 @@ |
||
87 | 87 | echo $args['after_widget']; |
88 | 88 | } |
89 | 89 | |
90 | + /** |
|
91 | + * @param string $user_id |
|
92 | + */ |
|
90 | 93 | function goodreads_user_id_exists( $user_id ) { |
91 | 94 | $url = "https://www.goodreads.com/user/show/$user_id/"; |
92 | 95 | $response = wp_remote_head( $url, array( 'httpversion' => '1.1', 'timeout' => 3, 'redirection' => 2 ) ); |