@@ -42,6 +42,9 @@ discard block |
||
| 42 | 42 | return $this->id; |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @return string |
|
| 47 | + */ |
|
| 45 | 48 | public function get_share_url( $post_id ) { |
| 46 | 49 | /** |
| 47 | 50 | * Filter the sharing permalink. |
@@ -324,6 +327,9 @@ discard block |
||
| 324 | 327 | do_action( 'sharing_bump_stats', array( 'service' => $this, 'post' => $post ) ); |
| 325 | 328 | } |
| 326 | 329 | |
| 330 | + /** |
|
| 331 | + * @param string $name |
|
| 332 | + */ |
|
| 327 | 333 | public function js_dialog( $name, $params = array() ) { |
| 328 | 334 | if ( true !== $this->open_link_in_new ) { |
| 329 | 335 | return; |
@@ -1463,6 +1469,9 @@ discard block |
||
| 1463 | 1469 | return __( 'Pinterest', 'jetpack' ); |
| 1464 | 1470 | } |
| 1465 | 1471 | |
| 1472 | + /** |
|
| 1473 | + * @return string |
|
| 1474 | + */ |
|
| 1466 | 1475 | public function get_image( $post ) { |
| 1467 | 1476 | if ( class_exists( 'Jetpack_PostImages' ) ) { |
| 1468 | 1477 | $image = Jetpack_PostImages::get_image( $post->ID, array( 'fallback_to_avatars' => true ) ); |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * Verifies that a user answered the math problem correctly while logging in. |
| 28 | 28 | * |
| 29 | - * @return bool Returns true if the math is correct |
|
| 29 | + * @return boolean|null Returns true if the math is correct |
|
| 30 | 30 | * @throws Error if insuffient $_POST variables are present. |
| 31 | 31 | * @throws Error message if the math is wrong |
| 32 | 32 | */ |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | /** |
| 110 | 110 | * Requires a user to solve a simple equation. Added to any WordPress login form. |
| 111 | 111 | * |
| 112 | - * @return VOID outputs html |
|
| 112 | + * @return string|null outputs html |
|
| 113 | 113 | */ |
| 114 | 114 | static function math_form() { |
| 115 | 115 | // Check if jpp_math_pass cookie is set and it matches valid transient |
@@ -135,6 +135,9 @@ discard block |
||
| 135 | 135 | self::set_is_sending( null ); |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | + /** |
|
| 139 | + * @param boolean|null $is_importing |
|
| 140 | + */ |
|
| 138 | 141 | static function set_importing( $is_importing ) { |
| 139 | 142 | // set to NULL to revert to WP_IMPORTING, the standard behavior |
| 140 | 143 | self::$is_importing = $is_importing; |
@@ -165,6 +168,9 @@ discard block |
||
| 165 | 168 | return (bool) self::$is_syncing || ( defined( 'REST_API_REQUEST' ) && REST_API_REQUEST ); |
| 166 | 169 | } |
| 167 | 170 | |
| 171 | + /** |
|
| 172 | + * @param boolean|null $is_syncing |
|
| 173 | + */ |
|
| 168 | 174 | static function set_is_syncing( $is_syncing ) { |
| 169 | 175 | self::$is_syncing = $is_syncing; |
| 170 | 176 | } |
@@ -173,6 +179,9 @@ discard block |
||
| 173 | 179 | return (bool) self::$is_sending; |
| 174 | 180 | } |
| 175 | 181 | |
| 182 | + /** |
|
| 183 | + * @param boolean|null $is_sending |
|
| 184 | + */ |
|
| 176 | 185 | static function set_is_sending( $is_sending ) { |
| 177 | 186 | self::$is_sending = $is_sending; |
| 178 | 187 | } |
@@ -441,7 +441,7 @@ discard block |
||
| 441 | 441 | * |
| 442 | 442 | * @param array $connections_data |
| 443 | 443 | * |
| 444 | - * @return array { |
|
| 444 | + * @return string { |
|
| 445 | 445 | * Array of content for generating connection form. |
| 446 | 446 | * |
| 447 | 447 | * @type string HTML content of form |
@@ -544,6 +544,9 @@ discard block |
||
| 544 | 544 | return ob_get_clean(); |
| 545 | 545 | } |
| 546 | 546 | |
| 547 | + /** |
|
| 548 | + * @return string |
|
| 549 | + */ |
|
| 547 | 550 | private function google_plus_shut_down_notice() { |
| 548 | 551 | return wp_kses( |
| 549 | 552 | sprintf( |