@@ -502,7 +502,7 @@ discard block |
||
502 | 502 | * Our [testimonial] shortcode. |
503 | 503 | * Prints Testimonial data styled to look good on *any* theme. |
504 | 504 | * |
505 | - * @return jetpack_testimonial_shortcode_html |
|
505 | + * @return string |
|
506 | 506 | */ |
507 | 507 | static function jetpack_testimonial_shortcode( $atts ) { |
508 | 508 | // Default attributes |
@@ -565,7 +565,7 @@ discard block |
||
565 | 565 | /** |
566 | 566 | * The Testimonial shortcode loop. |
567 | 567 | * |
568 | - * @return html |
|
568 | + * @return string |
|
569 | 569 | */ |
570 | 570 | static function jetpack_testimonial_shortcode_html( $atts ) { |
571 | 571 | // Default query arguments |
@@ -639,6 +639,7 @@ discard block |
||
639 | 639 | /** |
640 | 640 | * Individual testimonial class |
641 | 641 | * |
642 | + * @param integer $testimonial_index_number |
|
642 | 643 | * @return string |
643 | 644 | */ |
644 | 645 | static function get_testimonial_class( $testimonial_index_number, $columns ) { |
@@ -680,7 +681,7 @@ discard block |
||
680 | 681 | /** |
681 | 682 | * Display the featured image if it's available |
682 | 683 | * |
683 | - * @return html |
|
684 | + * @return string|null |
|
684 | 685 | */ |
685 | 686 | static function get_testimonial_thumbnail_link( $post_id ) { |
686 | 687 | if ( has_post_thumbnail( $post_id ) ) { |
@@ -139,7 +139,7 @@ |
||
139 | 139 | * @param string $avatar The <img/> element of the avatar. |
140 | 140 | * @param mixed $author User ID, email address, user login, comment object, user object, post object |
141 | 141 | * |
142 | - * @return The <img/> element of the avatar. |
|
142 | + * @return string <img/> element of the avatar. |
|
143 | 143 | */ |
144 | 144 | function grofiles_get_avatar( $avatar, $author ) { |
145 | 145 | if ( is_numeric( $author ) ) { |
@@ -1283,7 +1283,7 @@ |
||
1283 | 1283 | * Returns an array of stock and custom taxonomy query vars |
1284 | 1284 | * |
1285 | 1285 | * @global $wp_taxonomies |
1286 | - * @return array |
|
1286 | + * @return string[] |
|
1287 | 1287 | */ |
1288 | 1288 | function get_taxonomy_vars() { |
1289 | 1289 | global $wp_taxonomies; |
@@ -58,6 +58,9 @@ |
||
58 | 58 | return latex_render( $latex, $fg, $bg, $s ); |
59 | 59 | } |
60 | 60 | |
61 | +/** |
|
62 | + * @param string $color |
|
63 | + */ |
|
61 | 64 | function latex_get_default_color( $color, $default_color = 'ffffff' ) { |
62 | 65 | global $themecolors; |
63 | 66 | return isset($themecolors[$color]) ? $themecolors[$color] : $default_color; |
@@ -332,6 +332,9 @@ |
||
332 | 332 | <?php |
333 | 333 | } |
334 | 334 | |
335 | + /** |
|
336 | + * @param string $option |
|
337 | + */ |
|
335 | 338 | function admin_likes_get_option( $option ) { |
336 | 339 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
337 | 340 | $option_setting = get_blog_option( get_current_blog_id(), $option, 'on' ); |
@@ -504,6 +504,9 @@ |
||
504 | 504 | ) ); |
505 | 505 | } |
506 | 506 | |
507 | + /** |
|
508 | + * @param string $content |
|
509 | + */ |
|
507 | 510 | protected function comment_hash( $content ) { |
508 | 511 | return 'c-' . substr( md5( $content ), 0, 8 ); |
509 | 512 | } |
@@ -48,6 +48,9 @@ |
||
48 | 48 | add_action( 'init', array( &$this, 'action_init' ) ); |
49 | 49 | } |
50 | 50 | |
51 | + /** |
|
52 | + * @param string $file |
|
53 | + */ |
|
51 | 54 | function wpcom_static_url($file) { |
52 | 55 | $i = hexdec( substr( md5( $file ), -1 ) ) % 2; |
53 | 56 | $url = 'http://s' . $i . '.wp.com' . $file; |
@@ -26,7 +26,7 @@ |
||
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 | */ |
@@ -266,6 +266,9 @@ discard block |
||
266 | 266 | return trim( preg_replace( '#<p>\s*</p>#i', '', $new_string ) ); |
267 | 267 | } |
268 | 268 | |
269 | + /** |
|
270 | + * @return integer |
|
271 | + */ |
|
269 | 272 | function remove_innermost_last_child( $node, &$node_removed_from ) { |
270 | 273 | $node_removed_from = $node; |
271 | 274 | |
@@ -308,6 +311,9 @@ discard block |
||
308 | 311 | return str_replace( $search, $replace, $string ); |
309 | 312 | } |
310 | 313 | |
314 | + /** |
|
315 | + * @param string $message |
|
316 | + */ |
|
311 | 317 | public static function sanitize_message( $message ) { |
312 | 318 | $message = preg_replace( '@<(script|style)[^>]*?>.*?</\\1>@si', '', $message ); |
313 | 319 | $message = wp_kses( $message, array() ); |