@@ -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 ) ); |