@@ -40,6 +40,9 @@ discard block |
||
40 | 40 | return $this->id; |
41 | 41 | } |
42 | 42 | |
43 | + /** |
|
44 | + * @return string |
|
45 | + */ |
|
43 | 46 | public function get_share_url( $post_id ) { |
44 | 47 | /** |
45 | 48 | * Filter the sharing permalink. |
@@ -311,6 +314,9 @@ discard block |
||
311 | 314 | do_action( 'sharing_bump_stats', array( 'service' => $this, 'post' => $post ) ); |
312 | 315 | } |
313 | 316 | |
317 | + /** |
|
318 | + * @param string $name |
|
319 | + */ |
|
314 | 320 | public function js_dialog( $name, $params = array() ) { |
315 | 321 | if ( true !== $this->open_link_in_new ) |
316 | 322 | return; |
@@ -1407,6 +1413,9 @@ discard block |
||
1407 | 1413 | return __( 'Pinterest', 'jetpack' ); |
1408 | 1414 | } |
1409 | 1415 | |
1416 | + /** |
|
1417 | + * @return string |
|
1418 | + */ |
|
1410 | 1419 | public function get_image( $post ) { |
1411 | 1420 | if ( class_exists( 'Jetpack_PostImages' ) ) { |
1412 | 1421 | $image = Jetpack_PostImages::get_image( $post->ID, array( 'fallback_to_avatars' => true ) ); |