PluginProbe
bbPress / 2.6.17
bbPress v2.6.17
2.6.17 trunk 2.0 2.0-beta-1 2.0-beta-2b 2.0-beta-3 2.0-beta-3b 2.0-rc-2 2.0-rc-3 2.0-rc-4 2.0-rc-5 2.0.1 2.0.2 2.0.3 2.1 2.1-beta-1 2.1-rc1 2.1-rc2 2.1-rc3 2.1-rc4 2.1.1 2.1.2 2.1.3 2.2 2.2.1 All 72 releases
← All changes | includes/common/widgets.php +102 -102 trunk2.6.17 View file →
@@ -1,8 +1,8 @@
1 1 <?php
2 2
3 3 /**
4 - * bbPress Widgets.
4 + * bbPress Widgets
5 5 *
6 6 * Contains the forum list, topic list, reply list and login form widgets.
7 7 *
8 8 * @package bbPress
@@ -12,11 +12,11 @@
12 12 // Exit if accessed directly
13 13 defined( 'ABSPATH' ) || exit;
14 14
15 15 /**
16 - * bbPress Login Widget.
16 + * bbPress Login Widget
17 17 *
18 - * Adds a widget which displays the login form.
18 + * Adds a widget which displays the login form
19 19 *
20 20 * @since 2.0.0 bbPress (r2827)
21 21 */
22 22 class BBP_Login_Widget extends WP_Widget {
@@ -21,11 +21,11 @@
21 21 */
22 22 class BBP_Login_Widget extends WP_Widget {
23 23
24 24 /**
25 - * bbPress Login Widget.
25 + * bbPress Login Widget
26 26 *
27 - * Registers the login widget.
27 + * Registers the login widget
28 28 *
29 29 * @since 2.0.0 bbPress (r2827)
30 30 */
31 31 public function __construct() {
@@ -41,9 +41,9 @@
41 41 parent::__construct( false, esc_html__( '(bbPress) Login Widget', 'bbpress' ), $widget_ops );
42 42 }
43 43
44 44 /**
45 - * Register the widget.
45 + * Register the widget
46 46 *
47 47 * @since 2.0.0 bbPress (r3389)
48 48 */
49 49 public static function register_widget() {
@@ -50,14 +50,14 @@
50 50 register_widget( 'BBP_Login_Widget' );
51 51 }
52 52
53 53 /**
54 - * Displays the output, the login form.
54 + * Displays the output, the login form
55 55 *
56 56 * @since 2.0.0 bbPress (r2827)
57 57 *
58 - * @param array $args Arguments.
59 - * @param array $instance Instance.
58 + * @param array $args Arguments
59 + * @param array $instance Instance
60 60 */
61 61 public function widget( $args = array(), $instance = array() ) {
62 62
63 63 // Get widget settings
@@ -145,18 +145,18 @@
145 145 echo $args['after_widget'];
146 146 }
147 147
148 148 /**
149 - * Update the login widget options.
149 + * Update the login widget options
150 150 *
151 151 * @since 2.0.0 bbPress (r2827)
152 152 *
153 - * @param array $new_instance The new instance options.
154 - * @param array $old_instance The old instance options.
153 + * @param array $new_instance The new instance options
154 + * @param array $old_instance The old instance options
155 155 */
156 156 public function update( $new_instance, $old_instance ) {
157 157 $instance = $old_instance;
158 - $instance['title'] = wp_strip_all_tags( $new_instance['title'] );
158 + $instance['title'] = strip_tags( $new_instance['title'] );
159 159 $instance['register'] = esc_url_raw( $new_instance['register'] );
160 160 $instance['lostpass'] = esc_url_raw( $new_instance['lostpass'] );
161 161
162 162 return $instance;
@@ -162,13 +162,13 @@
162 162 return $instance;
163 163 }
164 164
165 165 /**
166 - * Output the login widget options form.
166 + * Output the login widget options form
167 167 *
168 168 * @since 2.0.0 bbPress (r2827)
169 169 *
170 - * @param $instance Instance.
170 + * @param $instance Instance
171 171 */
172 172 public function form( $instance = array() ) {
173 173
174 174 // Get widget settings
@@ -196,9 +196,9 @@
196 196 * Merge the widget settings into defaults array.
197 197 *
198 198 * @since 2.3.0 bbPress (r4802)
199 199 *
200 - * @param $instance Instance.
200 + * @param $instance Instance
201 201 */
202 202 public function parse_settings( $instance = array() ) {
203 203 return bbp_parse_args(
204 204 $instance,
@@ -212,11 +212,11 @@
212 212 }
213 213 }
214 214
215 215 /**
216 - * bbPress Views Widget.
216 + * bbPress Views Widget
217 217 *
218 - * Adds a widget which displays the view list.
218 + * Adds a widget which displays the view list
219 219 *
220 220 * @since 2.0.0 bbPress (r3020)
221 221 */
222 222 class BBP_Views_Widget extends WP_Widget {
@@ -221,11 +221,11 @@
221 221 */
222 222 class BBP_Views_Widget extends WP_Widget {
223 223
224 224 /**
225 - * bbPress View Widget.
225 + * bbPress View Widget
226 226 *
227 - * Registers the view widget.
227 + * Registers the view widget
228 228 *
229 229 * @since 2.0.0 bbPress (r3020)
230 230 */
231 231 public function __construct() {
@@ -241,9 +241,9 @@
241 241 parent::__construct( false, esc_html__( '(bbPress) Topic Views List', 'bbpress' ), $widget_ops );
242 242 }
243 243
244 244 /**
245 - * Register the widget.
245 + * Register the widget
246 246 *
247 247 * @since 2.0.0 bbPress (r3389)
248 248 */
249 249 public static function register_widget() {
@@ -250,14 +250,14 @@
250 250 register_widget( 'BBP_Views_Widget' );
251 251 }
252 252
253 253 /**
254 - * Displays the output, the view list.
254 + * Displays the output, the view list
255 255 *
256 256 * @since 2.0.0 bbPress (r3020)
257 257 *
258 - * @param array $args Arguments.
259 - * @param array $instance Instance.
258 + * @param array $args Arguments
259 + * @param array $instance Instance
260 260 */
261 261 public function widget( $args = array(), $instance = array() ) {
262 262
263 263 // Only output widget contents if views exist
@@ -299,28 +299,28 @@
299 299 echo ob_get_clean();
300 300 }
301 301
302 302 /**
303 - * Update the view widget options.
303 + * Update the view widget options
304 304 *
305 305 * @since 2.0.0 bbPress (r3020)
306 306 *
307 - * @param array $new_instance The new instance options.
308 - * @param array $old_instance The old instance options.
307 + * @param array $new_instance The new instance options
308 + * @param array $old_instance The old instance options
309 309 */
310 310 public function update( $new_instance = array(), $old_instance = array() ) {
311 311 $instance = $old_instance;
312 - $instance['title'] = wp_strip_all_tags( $new_instance['title'] );
312 + $instance['title'] = strip_tags( $new_instance['title'] );
313 313
314 314 return $instance;
315 315 }
316 316
317 317 /**
318 - * Output the view widget options form.
318 + * Output the view widget options form
319 319 *
320 320 * @since 2.0.0 bbPress (r3020)
321 321 *
322 - * @param $instance Instance.
322 + * @param $instance Instance
323 323 */
324 324 public function form( $instance = array() ) {
325 325
326 326 // Get widget settings
@@ -339,9 +339,9 @@
339 339 * Merge the widget settings into defaults array.
340 340 *
341 341 * @since 2.3.0 bbPress (r4802)
342 342 *
343 - * @param $instance Instance.
343 + * @param $instance Instance
344 344 */
345 345 public function parse_settings( $instance = array() ) {
346 346 return bbp_parse_args(
347 347 $instance,
@@ -353,11 +353,11 @@
353 353 }
354 354 }
355 355
356 356 /**
357 - * bbPress Search Widget.
357 + * bbPress Search Widget
358 358 *
359 - * Adds a widget which displays the forum search form.
359 + * Adds a widget which displays the forum search form
360 360 *
361 361 * @since 2.3.0 bbPress (r4579)
362 362 */
363 363 class BBP_Search_Widget extends WP_Widget {
@@ -362,11 +362,11 @@
362 362 */
363 363 class BBP_Search_Widget extends WP_Widget {
364 364
365 365 /**
366 - * bbPress Search Widget.
366 + * bbPress Search Widget
367 367 *
368 - * Registers the search widget.
368 + * Registers the search widget
369 369 *
370 370 * @since 2.3.0 bbPress (r4579)
371 371 */
372 372 public function __construct() {
@@ -382,9 +382,9 @@
382 382 parent::__construct( false, esc_html__( '(bbPress) Forum Search Form', 'bbpress' ), $widget_ops );
383 383 }
384 384
385 385 /**
386 - * Register the widget.
386 + * Register the widget
387 387 *
388 388 * @since 2.3.0 bbPress (r4579)
389 389 */
390 390 public static function register_widget() {
@@ -391,9 +391,9 @@
391 391 register_widget( 'BBP_Search_Widget' );
392 392 }
393 393
394 394 /**
395 - * Displays the output, the search form.
395 + * Displays the output, the search form
396 396 *
397 397 * @since 2.3.0 bbPress (r4579)
398 398 */
399 399 public function widget( $args, $instance ) {
@@ -423,28 +423,28 @@
423 423 echo $args['after_widget'];
424 424 }
425 425
426 426 /**
427 - * Update the widget options.
427 + * Update the widget options
428 428 *
429 429 * @since 2.3.0 bbPress (r4579)
430 430 *
431 - * @param array $new_instance The new instance options.
432 - * @param array $old_instance The old instance options.
431 + * @param array $new_instance The new instance options
432 + * @param array $old_instance The old instance options
433 433 */
434 434 public function update( $new_instance, $old_instance ) {
435 435 $instance = $old_instance;
436 - $instance['title'] = wp_strip_all_tags( $new_instance['title'] );
436 + $instance['title'] = strip_tags( $new_instance['title'] );
437 437
438 438 return $instance;
439 439 }
440 440
441 441 /**
442 - * Output the search widget options form.
442 + * Output the search widget options form
443 443 *
444 444 * @since 2.3.0 bbPress (r4579)
445 445 *
446 - * @param $instance Instance.
446 + * @param $instance Instance
447 447 */
448 448 public function form( $instance ) {
449 449
450 450 // Get widget settings
@@ -463,9 +463,9 @@
463 463 * Merge the widget settings into defaults array.
464 464 *
465 465 * @since 2.3.0 bbPress (r4802)
466 466 *
467 - * @param $instance Instance.
467 + * @param $instance Instance
468 468 */
469 469 public function parse_settings( $instance = array() ) {
470 470 return bbp_parse_args(
471 471 $instance,
@@ -477,11 +477,11 @@
477 477 }
478 478 }
479 479
480 480 /**
481 - * bbPress Forum Widget.
481 + * bbPress Forum Widget
482 482 *
483 - * Adds a widget which displays the forum list.
483 + * Adds a widget which displays the forum list
484 484 *
485 485 * @since 2.0.0 bbPress (r2653)
486 486 */
487 487 class BBP_Forums_Widget extends WP_Widget {
@@ -486,11 +486,11 @@
486 486 */
487 487 class BBP_Forums_Widget extends WP_Widget {
488 488
489 489 /**
490 - * bbPress Forum Widget.
490 + * bbPress Forum Widget
491 491 *
492 - * Registers the forum widget.
492 + * Registers the forum widget
493 493 *
494 494 * @since 2.0.0 bbPress (r2653)
495 495 */
496 496 public function __construct() {
@@ -506,9 +506,9 @@
506 506 parent::__construct( false, esc_html__( '(bbPress) Forums List', 'bbpress' ), $widget_ops );
507 507 }
508 508
509 509 /**
510 - * Register the widget.
510 + * Register the widget
511 511 *
512 512 * @since 2.0.0 bbPress (r3389)
513 513 */
514 514 public static function register_widget() {
@@ -515,14 +515,14 @@
515 515 register_widget( 'BBP_Forums_Widget' );
516 516 }
517 517
518 518 /**
519 - * Displays the output, the forum list.
519 + * Displays the output, the forum list
520 520 *
521 521 * @since 2.0.0 bbPress (r2653)
522 522 *
523 - * @param array $args Arguments.
524 - * @param array $instance Instance.
523 + * @param array $args Arguments
524 + * @param array $instance Instance
525 525 */
526 526 public function widget( $args, $instance ) {
527 527
528 528 // Get widget settings
@@ -590,18 +590,18 @@
590 590 wp_reset_postdata();
591 591 }
592 592
593 593 /**
594 - * Update the forum widget options.
594 + * Update the forum widget options
595 595 *
596 596 * @since 2.0.0 bbPress (r2653)
597 597 *
598 - * @param array $new_instance The new instance options.
599 - * @param array $old_instance The old instance options.
598 + * @param array $new_instance The new instance options
599 + * @param array $old_instance The old instance options
600 600 */
601 601 public function update( $new_instance, $old_instance ) {
602 602 $instance = $old_instance;
603 - $instance['title'] = wp_strip_all_tags( $new_instance['title'] );
603 + $instance['title'] = strip_tags( $new_instance['title'] );
604 604 $instance['parent_forum'] = sanitize_text_field( $new_instance['parent_forum'] );
605 605
606 606 // Force to any
607 607 if ( ! empty( $instance['parent_forum'] ) && ! is_numeric( $instance['parent_forum'] ) ) {
@@ -611,13 +611,13 @@
611 611 return $instance;
612 612 }
613 613
614 614 /**
615 - * Output the forum widget options form.
615 + * Output the forum widget options form
616 616 *
617 617 * @since 2.0.0 bbPress (r2653)
618 618 *
619 - * @param $instance Instance.
619 + * @param $instance Instance
620 620 */
621 621 public function form( $instance ) {
622 622
623 623 // Get widget settings
@@ -646,9 +646,9 @@
646 646 * Merge the widget settings into defaults array.
647 647 *
648 648 * @since 2.3.0 bbPress (r4802)
649 649 *
650 - * @param $instance Instance.
650 + * @param $instance Instance
651 651 */
652 652 public function parse_settings( $instance = array() ) {
653 653 return bbp_parse_args(
654 654 $instance,
@@ -661,11 +661,11 @@
661 661 }
662 662 }
663 663
664 664 /**
665 - * bbPress Topic Widget.
665 + * bbPress Topic Widget
666 666 *
667 - * Adds a widget which displays the topic list.
667 + * Adds a widget which displays the topic list
668 668 *
669 669 * @since 2.0.0 bbPress (r2653)
670 670 */
671 671 class BBP_Topics_Widget extends WP_Widget {
@@ -670,11 +670,11 @@
670 670 */
671 671 class BBP_Topics_Widget extends WP_Widget {
672 672
673 673 /**
674 - * bbPress Topic Widget.
674 + * bbPress Topic Widget
675 675 *
676 - * Registers the topic widget.
676 + * Registers the topic widget
677 677 *
678 678 * @since 2.0.0 bbPress (r2653)
679 679 */
680 680 public function __construct() {
@@ -690,9 +690,9 @@
690 690 parent::__construct( false, esc_html__( '(bbPress) Recent Topics', 'bbpress' ), $widget_ops );
691 691 }
692 692
693 693 /**
694 - * Register the widget.
694 + * Register the widget
695 695 *
696 696 * @since 2.0.0 bbPress (r3389)
697 697 */
698 698 public static function register_widget() {
@@ -699,9 +699,9 @@
699 699 register_widget( 'BBP_Topics_Widget' );
700 700 }
701 701
702 702 /**
703 - * Displays the output, the topic list.
703 + * Displays the output, the topic list
704 704 *
705 705 * @since 2.0.0 bbPress (r2653)
706 706 *
707 707 * @param array $args
@@ -874,19 +874,19 @@
874 874 echo ob_get_clean();
875 875 }
876 876
877 877 /**
878 - * Update the topic widget options.
878 + * Update the topic widget options
879 879 *
880 880 * @since 2.0.0 bbPress (r2653)
881 881 *
882 - * @param array $new_instance The new instance options.
883 - * @param array $old_instance The old instance options.
882 + * @param array $new_instance The new instance options
883 + * @param array $old_instance The old instance options
884 884 */
885 885 public function update( $new_instance = array(), $old_instance = array() ) {
886 886 $instance = $old_instance;
887 - $instance['title'] = wp_strip_all_tags( $new_instance['title'] );
888 - $instance['order_by'] = wp_strip_all_tags( $new_instance['order_by'] );
887 + $instance['title'] = strip_tags( $new_instance['title'] );
888 + $instance['order_by'] = strip_tags( $new_instance['order_by'] );
889 889 $instance['parent_forum'] = sanitize_text_field( $new_instance['parent_forum'] );
890 890 $instance['max_shown'] = (int) $new_instance['max_shown'];
891 891
892 892 // Date
@@ -907,13 +907,13 @@
907 907 return $instance;
908 908 }
909 909
910 910 /**
911 - * Output the topic widget options form.
911 + * Output the topic widget options form
912 912 *
913 913 * @since 2.0.0 bbPress (r2653)
914 914 *
915 - * @param $instance Instance.
915 + * @param $instance Instance
916 916 */
917 917 public function form( $instance = array() ) {
918 918
919 919 // Get widget settings
@@ -951,9 +951,9 @@
951 951 * Merge the widget settings into defaults array.
952 952 *
953 953 * @since 2.3.0 bbPress (r4802)
954 954 *
955 - * @param $instance Instance.
955 + * @param $instance Instance
956 956 */
957 957 public function parse_settings( $instance = array() ) {
958 958 return bbp_parse_args(
959 959 $instance,
@@ -970,11 +970,11 @@
970 970 }
971 971 }
972 972
973 973 /**
974 - * bbPress Statistics Widget.
974 + * bbPress Statistics Widget
975 975 *
976 - * Adds a widget which displays the forum statistics.
976 + * Adds a widget which displays the forum statistics
977 977 *
978 978 * @since 2.3.0 bbPress (r4509)
979 979 */
980 980 class BBP_Stats_Widget extends WP_Widget {
@@ -979,11 +979,11 @@
979 979 */
980 980 class BBP_Stats_Widget extends WP_Widget {
981 981
982 982 /**
983 - * bbPress Statistics Widget.
983 + * bbPress Statistics Widget
984 984 *
985 - * Registers the statistics widget.
985 + * Registers the statistics widget
986 986 *
987 987 * @since 2.3.0 bbPress (r4509)
988 988 */
989 989 public function __construct() {
@@ -999,9 +999,9 @@
999 999 parent::__construct( false, esc_html__( '(bbPress) Statistics', 'bbpress' ), $widget_ops );
1000 1000 }
1001 1001
1002 1002 /**
1003 - * Register the widget.
1003 + * Register the widget
1004 1004 *
1005 1005 * @since 2.3.0 bbPress (r4509)
1006 1006 */
1007 1007 public static function register_widget() {
@@ -1008,14 +1008,14 @@
1008 1008 register_widget( 'BBP_Stats_Widget' );
1009 1009 }
1010 1010
1011 1011 /**
1012 - * Displays the output, the statistics.
1012 + * Displays the output, the statistics
1013 1013 *
1014 1014 * @since 2.3.0 bbPress (r4509)
1015 1015 *
1016 - * @param array $args Arguments.
1017 - * @param array $instance Instance.
1016 + * @param array $args Arguments
1017 + * @param array $instance Instance
1018 1018 */
1019 1019 public function widget( $args = array(), $instance = array() ) {
1020 1020
1021 1021 // Get widget settings
@@ -1038,26 +1038,26 @@
1038 1038 echo $args['after_widget'];
1039 1039 }
1040 1040
1041 1041 /**
1042 - * Update the statistics widget options.
1042 + * Update the statistics widget options
1043 1043 *
1044 1044 * @since 2.3.0 bbPress (r4509)
1045 1045 *
1046 - * @param array $new_instance The new instance options.
1047 - * @param array $old_instance The old instance options.
1046 + * @param array $new_instance The new instance options
1047 + * @param array $old_instance The old instance options
1048 1048 *
1049 1049 * @return array
1050 1050 */
1051 1051 public function update( $new_instance, $old_instance ) {
1052 1052 $instance = $old_instance;
1053 - $instance['title'] = wp_strip_all_tags( $new_instance['title'] );
1053 + $instance['title'] = strip_tags( $new_instance['title'] );
1054 1054
1055 1055 return $instance;
1056 1056 }
1057 1057
1058 1058 /**
1059 - * Output the statistics widget options form.
1059 + * Output the statistics widget options form
1060 1060 *
1061 1061 * @since 2.3.0 bbPress (r4509)
1062 1062 *
1063 1063 * @param $instance
@@ -1082,9 +1082,9 @@
1082 1082 * Merge the widget settings into defaults array.
1083 1083 *
1084 1084 * @since 2.3.0 bbPress (r4802)
1085 1085 *
1086 - * @param $instance Instance.
1086 + * @param $instance Instance
1087 1087 */
1088 1088 public function parse_settings( $instance = array() ) {
1089 1089 return bbp_parse_args(
1090 1090 $instance,
@@ -1096,11 +1096,11 @@
1096 1096 }
1097 1097 }
1098 1098
1099 1099 /**
1100 - * bbPress Replies Widget.
1100 + * bbPress Replies Widget
1101 1101 *
1102 - * Adds a widget which displays the replies list.
1102 + * Adds a widget which displays the replies list
1103 1103 *
1104 1104 * @since 2.0.0 bbPress (r2653)
1105 1105 */
1106 1106 class BBP_Replies_Widget extends WP_Widget {
@@ -1105,11 +1105,11 @@
1105 1105 */
1106 1106 class BBP_Replies_Widget extends WP_Widget {
1107 1107
1108 1108 /**
1109 - * bbPress Replies Widget.
1109 + * bbPress Replies Widget
1110 1110 *
1111 - * Registers the replies widget.
1111 + * Registers the replies widget
1112 1112 *
1113 1113 * @since 2.0.0 bbPress (r2653)
1114 1114 */
1115 1115 public function __construct() {
@@ -1125,9 +1125,9 @@
1125 1125 parent::__construct( false, esc_html__( '(bbPress) Recent Replies', 'bbpress' ), $widget_ops );
1126 1126 }
1127 1127
1128 1128 /**
1129 - * Register the widget.
1129 + * Register the widget
1130 1130 *
1131 1131 * @since 2.0.0 bbPress (r3389)
1132 1132 */
1133 1133 public static function register_widget() {
@@ -1134,9 +1134,9 @@
1134 1134 register_widget( 'BBP_Replies_Widget' );
1135 1135 }
1136 1136
1137 1137 /**
1138 - * Displays the output, the replies list.
1138 + * Displays the output, the replies list
1139 1139 *
1140 1140 * @since 2.0.0 bbPress (r2653)
1141 1141 *
1142 1142 * @param array $args
@@ -1216,9 +1216,9 @@
1216 1216
1217 1217 // Reply author, link, and timestamp
1218 1218 if ( ! empty( $settings['show_date'] ) && ! empty( $author_link ) ) :
1219 1219
1220 - /* translators: 1: reply author, 2: reply link, 3: reply timestamp */
1220 + // translators: 1: reply author, 2: reply link, 3: reply timestamp
1221 1221 printf( esc_html_x( '%1$s on %2$s %3$s', 'widgets', 'bbpress' ), $author_link, $reply_link, $show_date );
1222 1222
1223 1223 // Reply link and timestamp
1224 1224 elseif ( ! empty( $settings['show_date'] ) ) :
@@ -1226,9 +1226,9 @@
1226 1226
1227 1227 // Reply author and title
1228 1228 elseif ( ! empty( $author_link ) ) :
1229 1229
1230 - /* translators: 1: reply author, 2: reply link */
1230 + // translators: 1: reply author, 2: reply link
1231 1231 printf( esc_html_x( '%1$s on %2$s', 'widgets', 'bbpress' ), $author_link, $reply_link );
1232 1232
1233 1233 // Only the reply title
1234 1234 else :
@@ -1252,18 +1252,18 @@
1252 1252 echo ob_get_clean();
1253 1253 }
1254 1254
1255 1255 /**
1256 - * Update the reply widget options.
1256 + * Update the reply widget options
1257 1257 *
1258 1258 * @since 2.0.0 bbPress (r2653)
1259 1259 *
1260 - * @param array $new_instance The new instance options.
1261 - * @param array $old_instance The old instance options.
1260 + * @param array $new_instance The new instance options
1261 + * @param array $old_instance The old instance options
1262 1262 */
1263 1263 public function update( $new_instance = array(), $old_instance = array() ) {
1264 1264 $instance = $old_instance;
1265 - $instance['title'] = wp_strip_all_tags( $new_instance['title'] );
1265 + $instance['title'] = strip_tags( $new_instance['title'] );
1266 1266 $instance['max_shown'] = (int) $new_instance['max_shown'];
1267 1267
1268 1268 // Date
1269 1269 $instance['show_date'] = isset( $new_instance['show_date'] )
@@ -1278,13 +1278,13 @@
1278 1278 return $instance;
1279 1279 }
1280 1280
1281 1281 /**
1282 - * Output the reply widget options form.
1282 + * Output the reply widget options form
1283 1283 *
1284 1284 * @since 2.0.0 bbPress (r2653)
1285 1285 *
1286 - * @param $instance Instance.
1286 + * @param $instance Instance
1287 1287 */
1288 1288 public function form( $instance = array() ) {
1289 1289
1290 1290 // Get widget settings
@@ -1302,9 +1302,9 @@
1302 1302 * Merge the widget settings into defaults array.
1303 1303 *
1304 1304 * @since 2.3.0 bbPress (r4802)
1305 1305 *
1306 - * @param $instance Instance.
1306 + * @param $instance Instance
1307 1307 */
1308 1308 public function parse_settings( $instance = array() ) {
1309 1309 return bbp_parse_args(
1310 1310 $instance,