@@ -138,6 +138,7 @@ |
||
138 | 138 | /** |
139 | 139 | * Returns a class value, `output-the-content` by default. |
140 | 140 | * Used for themes with a 'Mixed' Blog Display so we can tell which output is by default. |
141 | + * @param string $new_class |
|
141 | 142 | */ |
142 | 143 | function jetpack_the_content_customizer_class( $new_class = null ) { |
143 | 144 | static $class; |
@@ -699,7 +699,7 @@ |
||
699 | 699 | * handlers should be copied when the theme context is loaded by the REST API. |
700 | 700 | * |
701 | 701 | * @param array $copy_dirs Copy paths with actions to be copied |
702 | - * @return array Copy paths with featured content plugin |
|
702 | + * @return string[] Copy paths with featured content plugin |
|
703 | 703 | */ |
704 | 704 | function wpcom_rest_api_featured_content_copy_plugin_actions( $copy_dirs ) { |
705 | 705 | $copy_dirs[] = __FILE__; |
@@ -40,7 +40,6 @@ |
||
40 | 40 | /** |
41 | 41 | * Prevent IS from being activated if theme doesn't support it |
42 | 42 | * |
43 | - * @param bool $can_activate |
|
44 | 43 | * @filter jetpack_can_activate_infinite-scroll |
45 | 44 | * @return bool |
46 | 45 | */ |
@@ -29,6 +29,7 @@ |
||
29 | 29 | /** |
30 | 30 | * Adds a wrapper to videos and enqueue script |
31 | 31 | * |
32 | + * @param string $html |
|
32 | 33 | * @return string |
33 | 34 | */ |
34 | 35 | function jetpack_responsive_videos_embed_html( $html ) { |
@@ -258,7 +258,7 @@ |
||
258 | 258 | /** |
259 | 259 | * Reset the site logo if the current logo is deleted in the media manager. |
260 | 260 | * |
261 | - * @param int $site_id |
|
261 | + * @param int $post_id |
|
262 | 262 | * @uses Site_Logo::remove_site_logo() |
263 | 263 | */ |
264 | 264 | public function reset_on_attachment_delete( $post_id ) { |
@@ -165,6 +165,7 @@ |
||
165 | 165 | * Sanitize the string of classes used for header text. |
166 | 166 | * Limit to A-Z,a-z,0-9,(space),(comma),_,- |
167 | 167 | * |
168 | + * @param string $classes |
|
168 | 169 | * @return string Sanitized string of CSS classes. |
169 | 170 | */ |
170 | 171 | function jetpack_sanitize_header_text_classes( $classes ) { |
@@ -9,6 +9,11 @@ discard block |
||
9 | 9 | public $link; |
10 | 10 | public $grayscale; |
11 | 11 | public $columns; |
12 | + |
|
13 | + /** |
|
14 | + * @param boolean $grayscale |
|
15 | + * @param integer $columns |
|
16 | + */ |
|
12 | 17 | public function __construct( $attachments, $link, $grayscale, $columns ) { |
13 | 18 | |
14 | 19 | $this->attachments = $attachments; |
@@ -39,6 +44,9 @@ discard block |
||
39 | 44 | return $html; |
40 | 45 | } |
41 | 46 | |
47 | + /** |
|
48 | + * @param string $name |
|
49 | + */ |
|
42 | 50 | private function template( $name, $context = null ) { |
43 | 51 | if ( ! in_array( $name, self::$templates ) ) { |
44 | 52 | return; |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | /** |
246 | 246 | * A work-around / hack to make it possible to go to the media library with the add new box open. |
247 | 247 | * |
248 | - * @return bool |
|
248 | + * @return false|null |
|
249 | 249 | */ |
250 | 250 | public function print_in_footer_open_media_add_new() { |
251 | 251 | global $pagenow; |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | /** |
340 | 340 | * @param array $extensions |
341 | 341 | * |
342 | - * @return array |
|
342 | + * @return string[] |
|
343 | 343 | */ |
344 | 344 | public function add_videopress_extenstion( $extensions ) { |
345 | 345 | $extensions[] = 'videopress'; |
@@ -185,6 +185,7 @@ |
||
185 | 185 | * @since 1.3 |
186 | 186 | * @uses current_user_can() to test if current user has edit_posts capability |
187 | 187 | * @var WP_Error $error WordPress error |
188 | + * @param VideoPress_Video $error |
|
188 | 189 | * @return string HTML string |
189 | 190 | */ |
190 | 191 | private function error_message( $error ) { |