Changeset 7380 for trunk/src/includes/replies/template.php
- Timestamp:
- 12/05/2025 02:27:53 AM (6 months ago)
- File:
-
- 1 edited
-
trunk/src/includes/replies/template.php (modified) (117 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/template.php
r7379 r7380 2 2 3 3 /** 4 * bbPress Reply Template Tags 4 * bbPress Reply Template Tags. 5 5 * 6 6 * @package bbPress … … 14 14 15 15 /** 16 * Return the unique id of the custom post type for replies 16 * Return the unique id of the custom post type for replies. 17 17 * 18 18 * @since 2.0.0 bbPress (r2857) … … 24 24 25 25 /** 26 * Return the unique id of the custom post type for replies 26 * Return the unique id of the custom post type for replies. 27 27 * 28 28 * @since 2.0.0 bbPress (r2857) 29 29 * 30 * post type id 31 * @return string The unique reply post type id 30 * @return string The unique reply post type id. 32 31 */ 33 32 function bbp_get_reply_post_type() { … … 38 37 39 38 /** 40 * Return array of labels used by the reply post type 39 * Return array of labels used by the reply post type. 41 40 * 42 41 * @since 2.5.0 bbPress (r5129) … … 87 86 88 87 /** 89 * Return array of reply post type rewrite settings 88 * Return array of reply post type rewrite settings. 90 89 * 91 90 * @since 2.5.0 bbPress (r5129) … … 106 105 107 106 /** 108 * Return array of features the reply post type supports 107 * Return array of features the reply post type supports. 109 108 * 110 109 * @since 2.5.0 bbPress (r5129) … … 128 127 129 128 /** 130 * The main reply loop. WordPress makes this easy for us 129 * The main reply loop. WordPress makes this easy for us. 131 130 * 132 131 * @since 2.0.0 bbPress (r2553) 133 132 * 134 * @param array $args All the arguments supported by {@link WP_Query} 135 * @return object Multidimensional array of reply information 133 * @param array $args All the arguments supported by {@link WP_Query}. 134 * @return object Multidimensional array of reply information. 136 135 */ 137 136 function bbp_has_replies( $args = array() ) { … … 275 274 276 275 /** 277 * Whether there are more replies available in the loop 276 * Whether there are more replies available in the loop. 278 277 * 279 278 * @since 2.0.0 bbPress (r2553) 280 279 * 281 * @return object Replies information 280 * @return object Replies information. 282 281 */ 283 282 function bbp_replies() { … … 295 294 296 295 /** 297 * Loads up the current reply in the loop 296 * Loads up the current reply in the loop. 298 297 * 299 298 * @since 2.0.0 bbPress (r2553) 300 299 * 301 * @return object Reply information 300 * @return object Reply information. 302 301 */ 303 302 function bbp_the_reply() { … … 306 305 307 306 /** 308 * Output reply id 307 * Output reply id. 309 308 * 310 309 * @since 2.0.0 bbPress (r2553) 311 310 * 312 * @param $reply_id Optional. Used to check emptiness 311 * @param $reply_id Optional. Used to check emptiness. 313 312 */ 314 313 function bbp_reply_id( $reply_id = 0 ) { … … 317 316 318 317 /** 319 * Return the id of the reply in a replies loop 318 * Return the id of the reply in a replies loop. 320 319 * 321 320 * @since 2.0.0 bbPress (r2553) 322 321 * 323 * @param $reply_id Optional. Used to check emptiness 324 * @return int The reply id 322 * @param $reply_id Optional. Used to check emptiness. 323 * @return int The reply id. 325 324 */ 326 325 function bbp_get_reply_id( $reply_id = 0 ) { … … 358 357 359 358 /** 360 * Gets a reply 359 * Gets a reply. 361 360 * 362 361 * @since 2.0.0 bbPress (r2787) 363 362 * 364 * @param int|object $reply reply id or reply object 365 * @param string $output Optional. OBJECT, ARRAY_A, or ARRAY_N. Default = OBJECT 366 * @param string $filter Optional Sanitation filter. See {@link sanitize_post()} 367 * @return mixed Null if error or reply (in specified form) if success 363 * @param int|object $reply reply id or reply object. 364 * @param string $output Optional. OBJECT, ARRAY_A, or ARRAY_N. Default = OBJECT. 365 * @param string $filter Optional Sanitation filter. See {@link sanitize_post()}. 366 * @return mixed Null if error or reply (in specified form) if success. 368 367 */ 369 368 function bbp_get_reply( $reply, $output = OBJECT, $filter = 'raw' ) { … … 402 401 403 402 /** 404 * Output the link to the reply in the reply loop 403 * Output the link to the reply in the reply loop. 405 404 * 406 405 * @since 2.0.0 bbPress (r2553) 407 406 * 408 * @param int $reply_id Optional. Reply id 407 * @param int $reply_id Optional. Reply id. 409 408 */ 410 409 function bbp_reply_permalink( $reply_id = 0 ) { … … 413 412 414 413 /** 415 * Return the link to the reply 414 * Return the link to the reply. 416 415 * 417 416 * @since 2.0.0 bbPress (r2553) 418 417 * 419 * @param int $reply_id Optional. Reply id 420 * 421 * @return string Permanent link to reply 418 * @param int $reply_id Optional. Reply id. 419 * 420 * @return string Permanent link to reply. 422 421 */ 423 422 function bbp_get_reply_permalink( $reply_id = 0 ) { … … 429 428 430 429 /** 431 * Output the paginated url to the reply in the reply loop 430 * Output the paginated url to the reply in the reply loop. 432 431 * 433 432 * @since 2.0.0 bbPress (r2679) 434 433 * 435 * @param int $reply_id Optional. Reply id 434 * @param int $reply_id Optional. Reply id. 436 435 */ 437 436 function bbp_reply_url( $reply_id = 0 ) { … … 440 439 441 440 /** 442 * Return the paginated url to the reply in the reply loop 441 * Return the paginated url to the reply in the reply loop. 443 442 * 444 443 * @since 2.0.0 bbPress (r2679) 445 444 * 446 * @param int $reply_id Optional. Reply id 445 * @param int $reply_id Optional. Reply id. 447 446 * @param string $redirect_to Optional. Pass a redirect value for use with 448 447 * shortcodes and other fun things. 449 * @return string Link to reply relative to paginated topic 448 * @return string Link to reply relative to paginated topic. 450 449 */ 451 450 function bbp_get_reply_url( $reply_id = 0, $redirect_to = '' ) { … … 521 520 522 521 /** 523 * Output the title of the reply 522 * Output the title of the reply. 524 523 * 525 524 * @since 2.0.0 bbPress (r2553) 526 525 * 527 * @param int $reply_id Optional. Reply id 526 * @param int $reply_id Optional. Reply id. 528 527 */ 529 528 function bbp_reply_title( $reply_id = 0 ) { … … 532 531 533 532 /** 534 * Return the title of the reply 533 * Return the title of the reply. 535 534 * 536 535 * @since 2.0.0 bbPress (r2553) 537 536 * 538 * @param int $reply_id Optional. Reply id 539 * @return string Title of reply 537 * @param int $reply_id Optional. Reply id. 538 * @return string Title of reply. 540 539 */ 541 540 function bbp_get_reply_title( $reply_id = 0 ) { … … 553 552 * @since 2.5.0 bbPress (r5177) 554 553 * 555 * @param string $post_title Required. Reply Title 556 * @param int $post_id Required. Reply ID 557 * @return string Title of reply 554 * @param string $post_title Required. Reply Title. 555 * @param int $post_id Required. Reply ID. 556 * @return string Title of reply. 558 557 */ 559 558 function bbp_get_reply_title_fallback( $post_title = '', $post_id = 0 ) { … … 579 578 580 579 /** 581 * Output the content of the reply 580 * Output the content of the reply. 582 581 * 583 582 * @since 2.0.0 bbPress (r2553) 584 583 * 585 * @param int $reply_id Optional. reply id 584 * @param int $reply_id Optional. reply id. 586 585 */ 587 586 function bbp_reply_content( $reply_id = 0 ) { … … 590 589 591 590 /** 592 * Return the content of the reply 591 * Return the content of the reply. 593 592 * 594 593 * @since 2.0.0 bbPress (r2780) 595 594 * 596 * @param int $reply_id Optional. reply id 597 * @return string Content of the reply 595 * @param int $reply_id Optional. reply id. 596 * @return string Content of the reply. 598 597 */ 599 598 function bbp_get_reply_content( $reply_id = 0 ) { … … 612 611 613 612 /** 614 * Output the excerpt of the reply 613 * Output the excerpt of the reply. 615 614 * 616 615 * @since 2.0.0 bbPress (r2751) 617 616 * 618 * @param int $reply_id Optional. Reply id 619 * @param int $length Optional. Length of the excerpt. Defaults to 100 letters 617 * @param int $reply_id Optional. Reply id. 618 * @param int $length Optional. Length of the excerpt. Defaults to 100 letters. 620 619 */ 621 620 function bbp_reply_excerpt( $reply_id = 0, $length = 100 ) { … … 624 623 625 624 /** 626 * Return the excerpt of the reply 625 * Return the excerpt of the reply. 627 626 * 628 627 * @since 2.0.0 bbPress (r2751) 629 628 * 630 * @param int $reply_id Optional. Reply id 629 * @param int $reply_id Optional. Reply id. 631 630 * @param int $length Optional. Length of the excerpt. Defaults to 100 632 * letters 633 * @return string Reply Excerpt 631 * letters. 632 * @return string Reply Excerpt. 634 633 */ 635 634 function bbp_get_reply_excerpt( $reply_id = 0, $length = 100 ) { … … 661 660 662 661 /** 663 * Output the post date and time of a reply 662 * Output the post date and time of a reply. 664 663 * 665 664 * @since 2.2.0 bbPress (r4155) 666 665 * 667 666 * @param int $reply_id Optional. Reply id. 668 * @param bool $humanize Optional. Humanize output using time_since 669 * @param bool $gmt Optional. Use GMT 667 * @param bool $humanize Optional. Humanize output using time_since. 668 * @param bool $gmt Optional. Use GMT. 670 669 */ 671 670 function bbp_reply_post_date( $reply_id = 0, $humanize = false, $gmt = false ) { … … 674 673 675 674 /** 676 * Return the post date and time of a reply 675 * Return the post date and time of a reply. 677 676 * 678 677 * @since 2.2.0 bbPress (r4155) 679 678 * 680 679 * @param int $reply_id Optional. Reply id. 681 * @param bool $humanize Optional. Humanize output using time_since 682 * @param bool $gmt Optional. Use GMT 680 * @param bool $humanize Optional. Humanize output using time_since. 681 * @param bool $gmt Optional. Use GMT. 683 682 * @return string 684 683 */ … … 706 705 707 706 /** 708 * Append revisions to the reply content 707 * Append revisions to the reply content. 709 708 * 710 709 * @since 2.0.0 bbPress (r2782) 711 710 * 712 * @param string $content Optional. Content to which we need to append the revisions to 713 * @param int $reply_id Optional. Reply id 714 * @return string Content with the revisions appended 711 * @param string $content Optional. Content to which we need to append the revisions to. 712 * @param int $reply_id Optional. Reply id. 713 * @return string Content with the revisions appended. 715 714 */ 716 715 function bbp_reply_content_append_revisions( $content = '', $reply_id = 0 ) { … … 729 728 730 729 /** 731 * Output the revision log of the reply 730 * Output the revision log of the reply. 732 731 * 733 732 * @since 2.0.0 bbPress (r2782) 734 733 * 735 * @param int $reply_id Optional. Reply id 734 * @param int $reply_id Optional. Reply id. 736 735 */ 737 736 function bbp_reply_revision_log( $reply_id = 0 ) { … … 740 739 741 740 /** 742 * Return the formatted revision log of the reply 741 * Return the formatted revision log of the reply. 743 742 * 744 743 * @since 2.0.0 bbPress (r2782) 745 744 * 746 * @param int $reply_id Optional. Reply id 747 * @return string Revision log of the reply 745 * @param int $reply_id Optional. Reply id. 746 * @return string Revision log of the reply. 748 747 */ 749 748 function bbp_get_reply_revision_log( $reply_id = 0 ) { … … 812 811 813 812 /** 814 * Return the raw revision log of the reply 813 * Return the raw revision log of the reply. 815 814 * 816 815 * @since 2.0.0 bbPress (r2782) 817 816 * 818 * @param int $reply_id Optional. Reply id 819 * @return string Raw revision log of the reply 817 * @param int $reply_id Optional. Reply id. 818 * @return string Raw revision log of the reply. 820 819 */ 821 820 function bbp_get_reply_raw_revision_log( $reply_id = 0 ) { … … 831 830 832 831 /** 833 * Return the revisions of the reply 832 * Return the revisions of the reply. 834 833 * 835 834 * @since 2.0.0 bbPress (r2782) 836 835 * 837 * @param int $reply_id Optional. Reply id 838 * @return WP_Post[]|int[] reply revisions 836 * @param int $reply_id Optional. Reply id. 837 * @return WP_Post[]|int[] reply revisions. 839 838 */ 840 839 function bbp_get_reply_revisions( $reply_id = 0 ) { … … 847 846 848 847 /** 849 * Return the revision count of the reply 848 * Return the revision count of the reply. 850 849 * 851 850 * @since 2.0.0 bbPress (r2782) 852 851 * 853 * @param int $reply_id Optional. Reply id 854 * @param boolean $integer Optional. Whether or not to format the result 855 * @return string reply revision count 852 * @param int $reply_id Optional. Reply id. 853 * @param boolean $integer Optional. Whether or not to format the result. 854 * @return string reply revision count. 856 855 */ 857 856 function bbp_get_reply_revision_count( $reply_id = 0, $integer = false ) { … … 866 865 867 866 /** 868 * Output the status of the reply 867 * Output the status of the reply. 869 868 * 870 869 * @since 2.0.0 bbPress (r2667) 871 870 * 872 * @param int $reply_id Optional. Reply id 871 * @param int $reply_id Optional. Reply id. 873 872 */ 874 873 function bbp_reply_status( $reply_id = 0 ) { … … 877 876 878 877 /** 879 * Return the status of the reply 878 * Return the status of the reply. 880 879 * 881 880 * @since 2.0.0 bbPress (r2667) 882 881 * 883 * @param int $reply_id Optional. Reply id 884 * @return string Status of reply 882 * @param int $reply_id Optional. Reply id. 883 * @return string Status of reply. 885 884 */ 886 885 function bbp_get_reply_status( $reply_id = 0 ) { … … 898 897 * @since 2.6.0 bbPress (r6391) 899 898 * 900 * @param int $reply_id Optional. Reply id 899 * @param int $reply_id Optional. Reply id. 901 900 * @return bool True if public, false if not. 902 901 */ … … 917 916 * @since 2.6.0 bbPress (r6922) Returns false if topic is also not published 918 917 * 919 * @param int $reply_id Optional. Topic id 918 * @param int $reply_id Optional. Topic id. 920 919 * @return bool True if published, false if not. 921 920 */ … … 937 936 * @since 2.0.0 bbPress (r2740) 938 937 * 939 * @param int $reply_id Optional. Reply id 938 * @param int $reply_id Optional. Reply id. 940 939 * @return bool True if spam, false if not. 941 940 */ … … 954 953 * @since 2.0.0 bbPress (r2884) 955 954 * 956 * @param int $reply_id Optional. Topic id 955 * @param int $reply_id Optional. Topic id. 957 956 * @return bool True if spam, false if not. 958 957 */ … … 971 970 * @since 2.6.0 bbPress (r5507) 972 971 * 973 * @param int $reply_id Optional. Topic id 972 * @param int $reply_id Optional. Topic id. 974 973 * @return bool True if pending, false if not. 975 974 */ … … 988 987 * @since 2.6.0 bbPress (r5507) 989 988 * 990 * @param int $reply_id Optional. Topic id 989 * @param int $reply_id Optional. Topic id. 991 990 * @return bool True if private, false if not. 992 991 */ … … 1005 1004 * @since 2.0.0 bbPress (r2753) 1006 1005 * 1007 * @param int $reply_id Optional. Reply id 1006 * @param int $reply_id Optional. Reply id. 1008 1007 * @return bool True if the post is by an anonymous user, false if not. 1009 1008 */ … … 1029 1028 * Deprecated. Use bbp_reply_author_display_name() instead. 1030 1029 * 1031 * Output the author of the reply 1030 * Output the author of the reply. 1032 1031 * 1033 1032 * @since 2.0.0 bbPress (r2667) … … 1035 1034 * @deprecated 2.5.0 bbPress (r5119) 1036 1035 * 1037 * @param int $reply_id Optional. Reply id 1036 * @param int $reply_id Optional. Reply id. 1038 1037 */ 1039 1038 function bbp_reply_author( $reply_id = 0 ) { … … 1044 1043 * Deprecated. Use bbp_get_reply_author_display_name() instead. 1045 1044 * 1046 * Return the author of the reply 1045 * Return the author of the reply. 1047 1046 * 1048 1047 * @since 2.0.0 bbPress (r2667) … … 1050 1049 * @deprecated 2.5.0 bbPress (r5119) 1051 1050 * 1052 * @param int $reply_id Optional. Reply id 1053 * @return string Author of reply 1051 * @param int $reply_id Optional. Reply id. 1052 * @return string Author of reply. 1054 1053 */ 1055 1054 function bbp_get_reply_author( $reply_id = 0 ) { … … 1067 1066 1068 1067 /** 1069 * Output the author ID of the reply 1068 * Output the author ID of the reply. 1070 1069 * 1071 1070 * @since 2.0.0 bbPress (r2667) 1072 1071 * 1073 * @param int $reply_id Optional. Reply id 1072 * @param int $reply_id Optional. Reply id. 1074 1073 */ 1075 1074 function bbp_reply_author_id( $reply_id = 0 ) { … … 1078 1077 1079 1078 /** 1080 * Return the author ID of the reply 1079 * Return the author ID of the reply. 1081 1080 * 1082 1081 * @since 2.0.0 bbPress (r2667) 1083 1082 * 1084 * @param int $reply_id Optional. Reply id 1085 * @return string Author id of reply 1083 * @param int $reply_id Optional. Reply id. 1084 * @return string Author id of reply. 1086 1085 */ 1087 1086 function bbp_get_reply_author_id( $reply_id = 0 ) { … … 1094 1093 1095 1094 /** 1096 * Output the author display_name of the reply 1095 * Output the author display_name of the reply. 1097 1096 * 1098 1097 * @since 2.0.0 bbPress (r2667) 1099 1098 * 1100 * @param int $reply_id Optional. Reply id 1099 * @param int $reply_id Optional. Reply id. 1101 1100 */ 1102 1101 function bbp_reply_author_display_name( $reply_id = 0 ) { … … 1105 1104 1106 1105 /** 1107 * Return the author display_name of the reply 1106 * Return the author display_name of the reply. 1108 1107 * 1109 1108 * @since 2.0.0 bbPress (r2667) 1110 1109 * 1111 * @param int $reply_id Optional. Reply id 1112 * @return string The display name of the author of the reply 1110 * @param int $reply_id Optional. Reply id. 1111 * @return string The display name of the author of the reply. 1113 1112 */ 1114 1113 function bbp_get_reply_author_display_name( $reply_id = 0 ) { … … 1144 1143 1145 1144 /** 1146 * Output the author avatar of the reply 1145 * Output the author avatar of the reply. 1147 1146 * 1148 1147 * @since 2.0.0 bbPress (r2667) 1149 1148 * 1150 * @param int $reply_id Optional. Reply id 1151 * @param int $size Optional. Size of the avatar. Defaults to 40 1149 * @param int $reply_id Optional. Reply id. 1150 * @param int $size Optional. Size of the avatar. Defaults to 40. 1152 1151 */ 1153 1152 function bbp_reply_author_avatar( $reply_id = 0, $size = 40 ) { … … 1156 1155 1157 1156 /** 1158 * Return the author avatar of the reply 1157 * Return the author avatar of the reply. 1159 1158 * 1160 1159 * @since 2.0.0 bbPress (r2667) 1161 1160 * 1162 1161 * @param int $reply_id Optional. Reply id 1163 * @param int $size Optional. Size of the avatar. Defaults to 40 1164 * @return string Avatar of author of the reply 1162 * @param int $size Optional. Size of the avatar. Defaults to 40. 1163 * @return string Avatar of author of the reply. 1165 1164 */ 1166 1165 function bbp_get_reply_author_avatar( $reply_id = 0, $size = 40 ) { … … 1184 1183 1185 1184 /** 1186 * Output the author link of the reply 1185 * Output the author link of the reply. 1187 1186 * 1188 1187 * @since 2.0.0 bbPress (r2717) … … 1195 1194 1196 1195 /** 1197 * Return the author link of the reply 1196 * Return the author link of the reply. 1198 1197 * 1199 1198 * @since 2.0.0 bbPress (r2717) 1200 1199 * 1201 1200 * @param array $args Optional. If an integer, it is used as reply id. 1202 * @return string Author link of reply 1201 * @return string Author link of reply. 1203 1202 */ 1204 1203 function bbp_get_reply_author_link( $args = array() ) { … … 1301 1300 1302 1301 /** 1303 * Output the author url of the reply 1302 * Output the author url of the reply. 1304 1303 * 1305 1304 * @since 2.0.0 bbPress (r2667) 1306 1305 * 1307 * @param int $reply_id Optional. Reply id 1306 * @param int $reply_id Optional. Reply id. 1308 1307 */ 1309 1308 function bbp_reply_author_url( $reply_id = 0 ) { … … 1312 1311 1313 1312 /** 1314 * Return the author url of the reply 1313 * Return the author url of the reply. 1315 1314 * 1316 1315 * @since 2.0.0 bbPress (r2667) 1317 1316 * 1318 * @param int $reply_id Optional. Reply id 1319 * @return string Author URL of the reply 1317 * @param int $reply_id Optional. Reply id. 1318 * @return string Author URL of the reply. 1320 1319 */ 1321 1320 function bbp_get_reply_author_url( $reply_id = 0 ) { … … 1338 1337 1339 1338 /** 1340 * Output the reply author email address 1339 * Output the reply author email address. 1341 1340 * 1342 1341 * @since 2.0.0 bbPress (r3445) 1343 1342 * 1344 * @param int $reply_id Optional. Reply id 1343 * @param int $reply_id Optional. Reply id. 1345 1344 */ 1346 1345 function bbp_reply_author_email( $reply_id = 0 ) { … … 1349 1348 1350 1349 /** 1351 * Return the reply author email address 1350 * Return the reply author email address. 1352 1351 * 1353 1352 * @since 2.0.0 bbPress (r3445) 1354 1353 * 1355 * @param int $reply_id Optional. Reply id 1356 * @return string Reply author email address 1354 * @param int $reply_id Optional. Reply id. 1355 * @return string Reply author email address. 1357 1356 */ 1358 1357 function bbp_get_reply_author_email( $reply_id = 0 ) { … … 1384 1383 1385 1384 /** 1386 * Output the reply author role 1385 * Output the reply author role. 1387 1386 * 1388 1387 * @since 2.1.0 bbPress (r3860) … … 1395 1394 1396 1395 /** 1397 * Return the reply author role 1396 * Return the reply author role. 1398 1397 * 1399 1398 * @since 2.1.0 bbPress (r3860) 1400 1399 * 1401 1400 * @param array $args Optional. 1402 * @return string Reply author role 1401 * @return string Reply author role. 1403 1402 */ 1404 1403 function bbp_get_reply_author_role( $args = array() ) { … … 1440 1439 1441 1440 /** 1442 * Output the topic title a reply belongs to 1441 * Output the topic title a reply belongs to. 1443 1442 * 1444 1443 * @since 2.0.0 bbPress (r2553) 1445 1444 * 1446 * @param int $reply_id Optional. Reply id 1445 * @param int $reply_id Optional. Reply id. 1447 1446 */ 1448 1447 function bbp_reply_topic_title( $reply_id = 0 ) { … … 1451 1450 1452 1451 /** 1453 * Return the topic title a reply belongs to 1452 * Return the topic title a reply belongs to. 1454 1453 * 1455 1454 * @since 2.0.0 bbPress (r2553) 1456 1455 * 1457 * @param int $reply_id Optional. Reply id 1458 * @return string The topic title of the reply 1456 * @param int $reply_id Optional. Reply id. 1457 * @return string The topic title of the reply. 1459 1458 */ 1460 1459 function bbp_get_reply_topic_title( $reply_id = 0 ) { … … 1468 1467 1469 1468 /** 1470 * Output the topic id a reply belongs to 1469 * Output the topic id a reply belongs to. 1471 1470 * 1472 1471 * @since 2.0.0 bbPress (r2553) 1473 1472 * 1474 * @param int $reply_id Optional. Reply id 1473 * @param int $reply_id Optional. Reply id. 1475 1474 */ 1476 1475 function bbp_reply_topic_id( $reply_id = 0 ) { … … 1479 1478 1480 1479 /** 1481 * Return the topic id a reply belongs to 1480 * Return the topic id a reply belongs to. 1482 1481 * 1483 1482 * @since 2.0.0 bbPress (r2553) 1484 1483 * 1485 * @param int $reply_id Optional. Reply id 1486 * @return int The topic id of the reply 1484 * @param int $reply_id Optional. Reply id. 1485 * @return int The topic id of the reply. 1487 1486 */ 1488 1487 function bbp_get_reply_topic_id( $reply_id = 0 ) { … … 1505 1504 1506 1505 /** 1507 * Output the forum id a reply belongs to 1506 * Output the forum id a reply belongs to. 1508 1507 * 1509 1508 * @since 2.0.0 bbPress (r2679) 1510 1509 * 1511 * @param int $reply_id Optional. Reply id 1510 * @param int $reply_id Optional. Reply id. 1512 1511 */ 1513 1512 function bbp_reply_forum_id( $reply_id = 0 ) { … … 1516 1515 1517 1516 /** 1518 * Return the forum id a reply belongs to 1517 * Return the forum id a reply belongs to. 1519 1518 * 1520 1519 * @since 2.0.0 bbPress (r2679) 1521 1520 * 1522 * @param int $reply_id Optional. Reply id 1523 * 1524 * @return int The forum id of the reply 1521 * @param int $reply_id Optional. Reply id. 1522 * 1523 * @return int The forum id of the reply. 1525 1524 */ 1526 1525 function bbp_get_reply_forum_id( $reply_id = 0 ) { … … 1544 1543 1545 1544 /** 1546 * Output the ancestor reply id of a reply 1545 * Output the ancestor reply id of a reply. 1547 1546 * 1548 1547 * @since 2.4.0 bbPress (r4944) 1549 1548 * 1550 * @param int $reply_id Optional. Reply id 1549 * @param int $reply_id Optional. Reply id. 1551 1550 */ 1552 1551 function bbp_reply_ancestor_id( $reply_id = 0 ) { … … 1555 1554 1556 1555 /** 1557 * Return the ancestor reply id of a reply 1556 * Return the ancestor reply id of a reply. 1558 1557 * 1559 1558 * @since 2.4.0 bbPress (r4944) 1560 1559 * 1561 * @param in $reply_id Reply id 1560 * @param in $reply_id Reply id. 1562 1561 */ 1563 1562 function bbp_get_reply_ancestor_id( $reply_id = 0 ) { … … 1585 1584 1586 1585 /** 1587 * Output the reply to id of a reply 1586 * Output the reply to id of a reply. 1588 1587 * 1589 1588 * @since 2.4.0 bbPress (r4944) 1590 1589 * 1591 * @param int $reply_id Optional. Reply id 1590 * @param int $reply_id Optional. Reply id. 1592 1591 */ 1593 1592 function bbp_reply_to( $reply_id = 0 ) { … … 1596 1595 1597 1596 /** 1598 * Return the reply to id of a reply 1597 * Return the reply to id of a reply. 1599 1598 * 1600 1599 * @since 2.4.0 bbPress (r4944) 1601 1600 * 1602 * @param int $reply_id Optional. Reply id 1603 * @return int The parent reply id of the reply 1601 * @param int $reply_id Optional. Reply id. 1602 * @return int The parent reply id of the reply. 1604 1603 */ 1605 1604 function bbp_get_reply_to( $reply_id = 0 ) { … … 1621 1620 1622 1621 /** 1623 * Output the link for the reply to 1622 * Output the link for the reply to. 1624 1623 * 1625 1624 * @since 2.4.0 bbPress (r4944) … … 1632 1631 1633 1632 /** 1634 * Return the link for a reply to a reply 1633 * Return the link for a reply to a reply. 1635 1634 * 1636 1635 * @since 2.4.0 bbPress (r4944) 1637 1636 * 1638 * @param array $args Arguments 1639 * @return string Link for a reply to a reply 1637 * @param array $args Arguments. 1638 * @return string Link for a reply to a reply. 1640 1639 */ 1641 1640 function bbp_get_reply_to_link( $args = array() ) { … … 1700 1699 1701 1700 /** 1702 * Output the reply to a reply cancellation link 1701 * Output the reply to a reply cancellation link. 1703 1702 * 1704 1703 * @since 2.4.0 bbPress (r4944) … … 1709 1708 1710 1709 /** 1711 * Return the cancellation link for a reply to a reply 1710 * Return the cancellation link for a reply to a reply. 1712 1711 * 1713 1712 * @since 2.4.0 bbPress (r4944) 1714 1713 * 1715 * @param string $text The cancel text 1716 * @return string The cancellation link 1714 * @param string $text The cancel text. 1715 * @return string The cancellation link. 1717 1716 */ 1718 1717 function bbp_get_cancel_reply_to_link( $text = '' ) { … … 1743 1742 1744 1743 /** 1745 * Output the numeric position of a reply within a topic 1744 * Output the numeric position of a reply within a topic. 1746 1745 * 1747 1746 * @since 2.0.0 bbPress (r2984) 1748 1747 * 1749 * @param int $reply_id Optional. Reply id 1750 * @param int $topic_id Optional. Topic id 1748 * @param int $reply_id Optional. Reply id. 1749 * @param int $topic_id Optional. Topic id. 1751 1750 */ 1752 1751 function bbp_reply_position( $reply_id = 0, $topic_id = 0 ) { … … 1755 1754 1756 1755 /** 1757 * Return the numeric position of a reply within a topic 1756 * Return the numeric position of a reply within a topic. 1758 1757 * 1759 1758 * @since 2.0.0 bbPress (r2984) 1760 1759 * 1761 * @param int $reply_id Optional. Reply id 1762 * @param int $topic_id Optional. Topic id 1763 * @return int Reply position 1760 * @param int $reply_id Optional. Reply id. 1761 * @param int $topic_id Optional. Topic id. 1762 * @return int Reply position. 1764 1763 */ 1765 1764 function bbp_get_reply_position( $reply_id = 0, $topic_id = 0 ) { … … 1805 1804 1806 1805 /** 1807 * Output admin links for reply 1806 * Output admin links for reply. 1808 1807 * 1809 1808 * @since 2.0.0 bbPress (r2667) … … 1816 1815 1817 1816 /** 1818 * Return admin links for reply 1817 * Return admin links for reply. 1819 1818 * 1820 1819 * @since 2.0.0 bbPress (r2667) … … 1828 1827 * - links: Array of the links to display. By default, edit, trash, 1829 1828 * spam, reply move, and topic split links are displayed 1830 * @return string Reply admin links 1829 * @return string Reply admin links. 1831 1830 */ 1832 1831 function bbp_get_reply_admin_links( $args = array() ) { … … 1902 1901 1903 1902 /** 1904 * Output the edit link of the reply 1903 * Output the edit link of the reply. 1905 1904 * 1906 1905 * @since 2.0.0 bbPress (r2740) 1907 1906 * 1908 * @param array $args See {@link bbp_get_reply_edit_link()} 1907 * @param array $args See {@link bbp_get_reply_edit_link()}. 1909 1908 */ 1910 1909 function bbp_reply_edit_link( $args = array() ) { … … 1913 1912 1914 1913 /** 1915 * Return the edit link of the reply 1914 * Return the edit link of the reply. 1916 1915 * 1917 1916 * @since 2.0.0 bbPress (r2740) … … 1922 1921 * - link_after: HTML after the link 1923 1922 * - edit_text: Edit text. Defaults to 'Edit' 1924 * @return string Reply edit link 1923 * @return string Reply edit link. 1925 1924 */ 1926 1925 function bbp_get_reply_edit_link( $args = array() ) { … … 1965 1964 1966 1965 /** 1967 * Output URL to the reply edit page 1966 * Output URL to the reply edit page. 1968 1967 * 1969 1968 * @since 2.0.0 bbPress (r2753) 1970 1969 * 1971 * @param int $reply_id Optional. Reply id 1970 * @param int $reply_id Optional. Reply id. 1972 1971 */ 1973 1972 function bbp_reply_edit_url( $reply_id = 0 ) { … … 1976 1975 1977 1976 /** 1978 * Return URL to the reply edit page 1977 * Return URL to the reply edit page. 1979 1978 * 1980 1979 * @since 2.0.0 bbPress (r2753) 1981 1980 * 1982 * @param int $reply_id Optional. Reply id 1983 * @return string Reply edit url 1981 * @param int $reply_id Optional. Reply id. 1982 * @return string Reply edit url. 1984 1983 */ 1985 1984 function bbp_get_reply_edit_url( $reply_id = 0 ) { … … 2018 2017 2019 2018 /** 2020 * Output the trash link of the reply 2019 * Output the trash link of the reply. 2021 2020 * 2022 2021 * @since 2.0.0 bbPress (r2740) 2023 2022 * 2024 * @param array $args See {@link bbp_get_reply_trash_link()} 2023 * @param array $args See {@link bbp_get_reply_trash_link()}. 2025 2024 */ 2026 2025 function bbp_reply_trash_link( $args = array() ) { … … 2029 2028 2030 2029 /** 2031 * Return the trash link of the reply 2030 * Return the trash link of the reply. 2032 2031 * 2033 2032 * @since 2.0.0 bbPress (r2740) … … 2041 2040 * - restore_text: Restore text 2042 2041 * - delete_text: Delete text 2043 * @return string Reply trash link 2042 * @return string Reply trash link. 2044 2043 */ 2045 2044 function bbp_get_reply_trash_link( $args = array() ) { … … 2108 2107 2109 2108 /** 2110 * Output the spam link of the reply 2109 * Output the spam link of the reply. 2111 2110 * 2112 2111 * @since 2.0.0 bbPress (r2740) 2113 2112 * 2114 * @param array $args See {@link bbp_get_reply_spam_link()} 2113 * @param array $args See {@link bbp_get_reply_spam_link()}. 2115 2114 */ 2116 2115 function bbp_reply_spam_link( $args = array() ) { … … 2119 2118 2120 2119 /** 2121 * Return the spam link of the reply 2120 * Return the spam link of the reply. 2122 2121 * 2123 2122 * @since 2.0.0 bbPress (r2740) … … 2129 2128 * - spam_text: Spam text 2130 2129 * - unspam_text: Unspam text 2131 * @return string Reply spam link 2130 * @return string Reply spam link. 2132 2131 */ 2133 2132 function bbp_get_reply_spam_link( $args = array() ) { … … 2172 2171 2173 2172 /** 2174 * Move reply link 2175 * 2176 * Output the move link of the reply 2173 * Move reply link. 2174 * 2175 * Output the move link of the reply. 2177 2176 * 2178 2177 * @since 2.3.0 bbPress (r4521) 2179 2178 * 2180 * @param array $args See {@link bbp_get_reply_move_link()} 2179 * @param array $args See {@link bbp_get_reply_move_link()}. 2181 2180 */ 2182 2181 function bbp_reply_move_link( $args = array() ) { … … 2185 2184 2186 2185 /** 2187 * Get move reply link 2188 * 2189 * Return the move link of the reply 2186 * Get move reply link. 2187 * 2188 * Return the move link of the reply. 2190 2189 * 2191 2190 * @since 2.3.0 bbPress (r4521) … … 2197 2196 * - move_text: Move text 2198 2197 * - move_title: Move title attribute 2199 * @return string Reply move link 2198 * @return string Reply move link. 2200 2199 */ 2201 2200 function bbp_get_reply_move_link( $args = array() ) { … … 2238 2237 2239 2238 /** 2240 * Split topic link 2241 * 2242 * Output the split link of the topic (but is bundled with each reply) 2239 * Split topic link. 2240 * 2241 * Output the split link of the topic (but is bundled with each reply). 2243 2242 * 2244 2243 * @since 2.0.0 bbPress (r2756) 2245 2244 * 2246 * @param array $args See {@link bbp_get_topic_split_link()} 2245 * @param array $args See {@link bbp_get_topic_split_link()}. 2247 2246 */ 2248 2247 function bbp_topic_split_link( $args = array() ) { … … 2251 2250 2252 2251 /** 2253 * Get split topic link 2254 * 2255 * Return the split link of the topic (but is bundled with each reply) 2252 * Get split topic link. 2253 * 2254 * Return the split link of the topic (but is bundled with each reply). 2256 2255 * 2257 2256 * @since 2.0.0 bbPress (r2756) … … 2263 2262 * - split_text: Split text 2264 2263 * - split_title: Split title attribute 2265 * @return string Topic split link 2264 * @return string Topic split link. 2266 2265 */ 2267 2266 function bbp_get_topic_split_link( $args = array() ) { … … 2304 2303 2305 2304 /** 2306 * Output the approve link of the reply 2305 * Output the approve link of the reply. 2307 2306 * 2308 2307 * @since 2.6.0 bbPress (r5507) 2309 2308 * 2310 * @param array $args See {@link bbp_get_reply_approve_link()} 2309 * @param array $args See {@link bbp_get_reply_approve_link()}. 2311 2310 */ 2312 2311 function bbp_reply_approve_link( $args = array() ) { … … 2315 2314 2316 2315 /** 2317 * Return the approve link of the reply 2316 * Return the approve link of the reply. 2318 2317 * 2319 2318 * @since 2.6.0 bbPress (r5507) … … 2326 2325 * - approve_text: Approve text 2327 2326 * - unapprove_text: Unapprove text 2328 * @return string Reply approve link 2327 * @return string Reply approve link. 2329 2328 */ 2330 2329 function bbp_get_reply_approve_link( $args = array() ) { … … 2370 2369 2371 2370 /** 2372 * Output the row class of a reply 2371 * Output the row class of a reply. 2373 2372 * 2374 2373 * @since 2.0.0 bbPress (r2678) 2375 2374 * 2376 * @param int $reply_id Optional. Reply ID 2377 * @param array Extra classes you can pass when calling this function 2375 * @param int $reply_id Optional. Reply ID. 2376 * @param array Extra classes you can pass when calling this function. 2378 2377 */ 2379 2378 function bbp_reply_class( $reply_id = 0, $classes = array() ) { … … 2382 2381 2383 2382 /** 2384 * Return the row class of a reply 2383 * Return the row class of a reply. 2385 2384 * 2386 2385 * @since 2.0.0 bbPress (r2678) 2387 2386 * 2388 * @param int $reply_id Optional. Reply ID 2389 * @param array Extra classes you can pass when calling this function 2390 * @return string Row class of the reply 2387 * @param int $reply_id Optional. Reply ID. 2388 * @param array Extra classes you can pass when calling this function. 2389 * @return string Row class of the reply. 2391 2390 */ 2392 2391 function bbp_get_reply_class( $reply_id = 0, $classes = array() ) { … … 2443 2442 2444 2443 /** 2445 * Return the base URL used inside of pagination links 2444 * Return the base URL used inside of pagination links. 2446 2445 * 2447 2446 * @since 2.6.0 bbPress (r6679) 2448 2447 * 2449 * @param int $topic_id 2448 * @param int $topic_id Topic id. 2450 2449 * @return string 2451 2450 */ … … 2484 2483 2485 2484 /** 2486 * Output the topic pagination count 2485 * Output the topic pagination count. 2487 2486 * 2488 2487 * The results are unescaped by design, to allow them to be filtered freely via … … 2497 2496 2498 2497 /** 2499 * Return the topic pagination count 2498 * Return the topic pagination count. 2500 2499 * 2501 2500 * @since 2.0.0 bbPress (r2519) 2502 2501 * 2503 * @return string Topic pagination count 2502 * @return string Topic pagination count. 2504 2503 */ 2505 2504 function bbp_get_topic_pagination_count() { … … 2570 2569 2571 2570 /** 2572 * Output topic pagination links 2571 * Output topic pagination links. 2573 2572 * 2574 2573 * @since 2.0.0 bbPress (r2519) … … 2579 2578 2580 2579 /** 2581 * Return topic pagination links 2580 * Return topic pagination links. 2582 2581 * 2583 2582 * @since 2.0.0 bbPress (r2519) 2584 2583 * 2585 * @return string Topic pagination links 2584 * @return string Topic pagination links. 2586 2585 */ 2587 2586 function bbp_get_topic_pagination_links() { … … 2599 2598 2600 2599 /** 2601 * Output the value of reply content field 2600 * Output the value of reply content field. 2602 2601 * 2603 2602 * @since 2.0.0 bbPress (r3130) … … 2608 2607 2609 2608 /** 2610 * Return the value of reply content field 2609 * Return the value of reply content field. 2611 2610 * 2612 2611 * @since 2.0.0 bbPress (r3130) 2613 2612 * 2614 * @return string Value of reply content field 2613 * @return string Value of reply content field. 2615 2614 */ 2616 2615 function bbp_get_form_reply_content() { … … 2634 2633 2635 2634 /** 2636 * Output the value of the reply to field 2635 * Output the value of the reply to field. 2637 2636 * 2638 2637 * @since 2.4.0 bbPress (r4944) … … 2643 2642 2644 2643 /** 2645 * Return the value of reply to field 2644 * Return the value of reply to field. 2646 2645 * 2647 2646 * @since 2.4.0 bbPress (r4944) 2648 2647 * 2649 * @return string Value of reply to field 2648 * @return string Value of reply to field. 2650 2649 */ 2651 2650 function bbp_get_form_reply_to() { … … 2674 2673 * @since 2.6.0 bbPress (r5387) 2675 2674 * 2676 * @param int $reply_id 2675 * @param int $reply_id Reply id. 2677 2676 */ 2678 2677 function bbp_reply_to_dropdown( $reply_id = 0 ) { … … 2685 2684 * @since 2.6.0 bbPress (r5387) 2686 2685 * 2687 * @param int $reply_id 2688 * 2689 * @return string The dropdown 2686 * @param int $reply_id Reply id. 2687 * 2688 * @return string The dropdown. 2690 2689 */ 2691 2690 function bbp_get_reply_to_dropdown( $reply_id = 0 ) { … … 2752 2751 2753 2752 /** 2754 * Output checked value of reply log edit field 2753 * Output checked value of reply log edit field. 2755 2754 * 2756 2755 * @since 2.0.0 bbPress (r3130) … … 2761 2760 2762 2761 /** 2763 * Return checked value of reply log edit field 2762 * Return checked value of reply log edit field. 2764 2763 * 2765 2764 * @since 2.0.0 bbPress (r3130) 2766 2765 * 2767 * @return string Reply log edit checked value 2766 * @return string Reply log edit checked value. 2768 2767 */ 2769 2768 function bbp_get_form_reply_log_edit() { … … 2786 2785 2787 2786 /** 2788 * Output the value of the reply edit reason 2787 * Output the value of the reply edit reason. 2789 2788 * 2790 2789 * @since 2.0.0 bbPress (r3130) … … 2795 2794 2796 2795 /** 2797 * Return the value of the reply edit reason 2796 * Return the value of the reply edit reason. 2798 2797 * 2799 2798 * @since 2.0.0 bbPress (r3130) 2800 2799 * 2801 * @return string Reply edit reason value 2800 * @return string Reply edit reason value. 2802 2801 */ 2803 2802 function bbp_get_form_reply_edit_reason() { … … 2817 2816 2818 2817 /** 2819 * Output value reply status dropdown 2818 * Output value reply status dropdown. 2820 2819 * 2821 2820 * @since 2.6.0 bbPress (r5399) … … 2832 2831 2833 2832 /** 2834 * Returns reply status dropdown 2833 * Returns reply status dropdown. 2835 2834 * 2836 2835 * This dropdown is only intended to be seen by users with the 'moderate' … … 2908 2907 * @since 2.6.0 bbPress (r5558) 2909 2908 * 2910 * @return boolean True if is a post request with valid nonce 2909 * @return boolean True if is a post request with valid nonce. 2911 2910 */ 2912 2911 function bbp_is_reply_form_post_request() {
Note: See TracChangeset
for help on using the changeset viewer.