@@ -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 ) ); |
@@ -310,7 +310,7 @@ |
||
310 | 310 | /** |
311 | 311 | * Get the current user id |
312 | 312 | * |
313 | - * @return int |
|
313 | + * @return string |
|
314 | 314 | */ |
315 | 315 | public function get_user_id() { |
316 | 316 | if ( is_user_logged_in() ) { |