@@ -326,6 +326,9 @@ |
||
| 326 | 326 | return $contents; |
| 327 | 327 | } |
| 328 | 328 | |
| 329 | + /** |
|
| 330 | + * @param string $message |
|
| 331 | + */ |
|
| 329 | 332 | function display_page( $title, $message, $back_button = false, $recovery_form = false ) { |
| 330 | 333 | |
| 331 | 334 | if ( ! headers_sent() ) { |
@@ -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 ) ); |