@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | /** |
| 143 | 143 | * Plugin options getter |
| 144 | 144 | * |
| 145 | - * @param string|array $option Option name. |
|
| 145 | + * @param string $option Option name. |
|
| 146 | 146 | * @param mixed $default Default value. |
| 147 | 147 | * |
| 148 | 148 | * @return mixed Option value |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | * |
| 159 | 159 | * @param string $url Soundcloud URL. |
| 160 | 160 | * |
| 161 | - * @return boolean |
|
| 161 | + * @return integer |
|
| 162 | 162 | */ |
| 163 | 163 | function soundcloud_url_has_tracklist( $url ) { |
| 164 | 164 | return preg_match( '/^(.+?)\/(sets|groups|playlists)\/(.+?)$/', $url ); |
@@ -339,6 +339,9 @@ discard block |
||
| 339 | 339 | do_action( 'sharing_bump_stats', array( 'service' => $this, 'post' => $post ) ); |
| 340 | 340 | } |
| 341 | 341 | |
| 342 | + /** |
|
| 343 | + * @param string $name |
|
| 344 | + */ |
|
| 342 | 345 | public function js_dialog( $name, $params = array() ) { |
| 343 | 346 | if ( true !== $this->open_link_in_new ) { |
| 344 | 347 | return; |
@@ -1458,6 +1461,9 @@ discard block |
||
| 1458 | 1461 | return __( 'Pinterest', 'jetpack' ); |
| 1459 | 1462 | } |
| 1460 | 1463 | |
| 1464 | + /** |
|
| 1465 | + * @return string |
|
| 1466 | + */ |
|
| 1461 | 1467 | public function get_image( $post ) { |
| 1462 | 1468 | if ( class_exists( 'Jetpack_PostImages' ) ) { |
| 1463 | 1469 | $image = Jetpack_PostImages::get_image( $post->ID, array( 'fallback_to_avatars' => true ) ); |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | * |
| 83 | 83 | * @param string $raw_uri A URI (path+query only) to test for sitemap-ness. |
| 84 | 84 | * |
| 85 | - * @return array @args { |
|
| 85 | + * @return string @args { |
|
| 86 | 86 | * @type string $sitemap_name The recognized sitemap name (or null). |
| 87 | 87 | * } |
| 88 | 88 | */ |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | * |
| 57 | 57 | * @static |
| 58 | 58 | * |
| 59 | - * @param string $url Optional custom URL of a Jetpack logo. |
|
| 59 | + * @param string $filename |
|
| 60 | 60 | * @return string The Jetpack logo. |
| 61 | 61 | */ |
| 62 | 62 | public function render( $filename = null ) { |
@@ -7,10 +7,17 @@ |
||
| 7 | 7 | return $URL; |
| 8 | 8 | } |
| 9 | 9 | |
| 10 | +/** |
|
| 11 | + * @param string $string |
|
| 12 | + * @param string $namespace |
|
| 13 | + */ |
|
| 10 | 14 | function esc_attr__( $string, $namespace ) { |
| 11 | 15 | return $string; |
| 12 | 16 | } |
| 13 | 17 | |
| 18 | +/** |
|
| 19 | + * @param string $path |
|
| 20 | + */ |
|
| 14 | 21 | function content_url( $path ) { |
| 15 | 22 | return 'https://example.com/wp-content'. $path; |
| 16 | 23 | } |