Changeset 6573 for trunk/src/includes/replies/template.php
- Timestamp:
- 06/16/2017 09:20:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/template.php
r6565 r6573 18 18 * @since 2.0.0 bbPress (r2857) 19 19 * 20 * @uses bbp_get_reply_post_type() To get the reply post type21 20 */ 22 21 function bbp_reply_post_type() { … … 28 27 * @since 2.0.0 bbPress (r2857) 29 28 * 30 * @uses apply_filters() Calls 'bbp_get_forum_post_type' with the forum31 29 * post type id 32 30 * @return string The unique reply post type id … … 112 110 * 113 111 * @param array $args All the arguments supported by {@link WP_Query} 114 * @uses bbp_show_lead_topic() Are we showing the topic as a lead?115 * @uses bbp_get_topic_id() To get the topic id116 * @uses bbp_get_reply_post_type() To get the reply post type117 * @uses bbp_get_topic_post_type() To get the topic post type118 * @uses get_option() To get the replies per page option119 * @uses bbp_get_paged() To get the current page value120 * @uses current_user_can() To check if the current user is capable of editing121 * others' replies122 * @uses WP_Query To make query and get the replies123 * @uses bbp_use_pretty_urls() To check if the site is using pretty URLs124 * @uses get_permalink() To get the permalink125 * @uses add_query_arg() To add custom args to the url126 * @uses apply_filters() Calls 'bbp_replies_pagination' with the pagination args127 * @uses paginate_links() To paginate the links128 * @uses apply_filters() Calls 'bbp_has_replies' with129 * bbPress::reply_query::have_posts()130 * and bbPress::reply_query131 112 * @return object Multidimensional array of reply information 132 113 */ … … 301 282 * @since 2.0.0 bbPress (r2553) 302 283 * 303 * @uses WP_Query bbPress::reply_query::have_posts() To check if there are more304 * replies available305 284 * @return object Replies information 306 285 */ … … 323 302 * @since 2.0.0 bbPress (r2553) 324 303 * 325 * @uses WP_Query bbPress::reply_query::the_post() To get the current reply326 304 * @return object Reply information 327 305 */ … … 336 314 * 337 315 * @param $reply_id Optional. Used to check emptiness 338 * @uses bbp_get_reply_id() To get the reply id339 316 */ 340 317 function bbp_reply_id( $reply_id = 0 ) { … … 347 324 * 348 325 * @param $reply_id Optional. Used to check emptiness 349 * @uses bbPress::reply_query::post::ID To get the reply id350 * @uses bbp_is_reply() To check if the search result is a reply351 * @uses bbp_is_single_reply() To check if it's a reply page352 * @uses bbp_is_reply_edit() To check if it's a reply edit page353 * @uses get_post_field() To get the post's post type354 * @uses WP_Query::post::ID To get the reply id355 * @uses bbp_get_reply_post_type() To get the reply post type356 * @uses apply_filters() Calls 'bbp_get_reply_id' with the reply id and357 * supplied reply id358 326 * @return int The reply id 359 327 */ … … 400 368 * @param string $output Optional. OBJECT, ARRAY_A, or ARRAY_N. Default = OBJECT 401 369 * @param string $filter Optional Sanitation filter. See {@link sanitize_post()} 402 * @uses get_post() To get the reply403 * @uses bbp_get_reply_post_type() To get the reply post type404 * @uses apply_filters() Calls 'bbp_get_reply' with the reply, output type and405 * sanitation filter406 370 * @return mixed Null if error or reply (in specified form) if success 407 371 */ … … 442 406 * 443 407 * @param int $reply_id Optional. Reply id 444 * @uses bbp_get_reply_permalink() To get the reply permalink445 408 */ 446 409 function bbp_reply_permalink( $reply_id = 0 ) { … … 453 416 * 454 417 * @param int $reply_id Optional. Reply id 455 * @uses bbp_get_reply_id() To get the reply id456 * @uses get_permalink() To get the permalink of the reply457 * @uses apply_filters() Calls 'bbp_get_reply_permalink' with the link458 418 * and reply id 459 419 * @return string Permanent link to reply … … 465 425 return apply_filters( 'bbp_get_reply_permalink', get_permalink( $reply_id ), $reply_id ); 466 426 } 427 467 428 /** 468 429 * Output the paginated url to the reply in the reply loop … … 471 432 * 472 433 * @param int $reply_id Optional. Reply id 473 * @uses bbp_get_reply_url() To get the reply url474 434 */ 475 435 function bbp_reply_url( $reply_id = 0 ) { … … 484 444 * @param string $redirect_to Optional. Pass a redirect value for use with 485 445 * shortcodes and other fun things. 486 * @uses bbp_get_reply_id() To get the reply id487 * @uses bbp_get_reply_topic_id() To get the reply topic id488 * @uses bbp_get_topic_permalink() To get the topic permalink489 * @uses bbp_get_reply_position() To get the reply position490 * @uses get_option() To get the replies per page option491 * @uses bbp_use_pretty_urls() To check if the site uses pretty URLs492 * @uses add_query_arg() To add custom args to the url493 * @uses apply_filters() Calls 'bbp_get_reply_url' with the reply url,494 * reply id and bool count hidden495 446 * @return string Link to reply relative to paginated topic 496 447 */ … … 546 497 * 547 498 * @param int $reply_id Optional. Reply id 548 * @uses bbp_get_reply_title() To get the reply title549 499 */ 550 500 function bbp_reply_title( $reply_id = 0 ) { … … 558 508 * 559 509 * @param int $reply_id Optional. Reply id 560 * @uses bbp_get_reply_id() To get the reply id561 * @uses get_the_title() To get the reply title562 * @uses apply_filters() Calls 'bbp_get_reply_title' with the title and563 * reply id564 510 * @return string Title of reply 565 511 */ … … 579 525 * @param string $post_title Required. Reply Title 580 526 * @param int $post_id Required. Reply ID 581 * @uses bbp_get_reply_topic_title() To get the reply topic title582 * @uses apply_filters() Calls 'bbp_get_reply_title_fallback' with the title and reply ID583 527 * @return string Title of reply 584 528 */ … … 606 550 * 607 551 * @param int $reply_id Optional. reply id 608 * @uses bbp_get_reply_content() To get the reply content609 552 */ 610 553 function bbp_reply_content( $reply_id = 0 ) { … … 617 560 * 618 561 * @param int $reply_id Optional. reply id 619 * @uses bbp_get_reply_id() To get the reply id620 * @uses post_password_required() To check if the reply requires pass621 * @uses get_the_password_form() To get the password form622 * @uses get_post_field() To get the content post field623 * @uses apply_filters() Calls 'bbp_get_reply_content' with the content624 * and reply id625 562 * @return string Content of the reply 626 563 */ … … 646 583 * @param int $reply_id Optional. Reply id 647 584 * @param int $length Optional. Length of the excerpt. Defaults to 100 letters 648 * @uses bbp_get_reply_excerpt() To get the reply excerpt649 585 */ 650 586 function bbp_reply_excerpt( $reply_id = 0, $length = 100 ) { … … 659 595 * @param int $length Optional. Length of the excerpt. Defaults to 100 660 596 * letters 661 * @uses bbp_get_reply_id() To get the reply id662 * @uses get_post_field() To get the excerpt663 * @uses bbp_get_reply_content() To get the reply content664 * @uses apply_filters() Calls 'bbp_get_reply_excerpt' with the excerpt,665 * reply id and length666 597 * @return string Reply Excerpt 667 598 */ … … 701 632 * @param bool $humanize Optional. Humanize output using time_since 702 633 * @param bool $gmt Optional. Use GMT 703 * @uses bbp_get_reply_post_date() to get the output704 634 */ 705 635 function bbp_reply_post_date( $reply_id = 0, $humanize = false, $gmt = false ) { … … 714 644 * @param bool $humanize Optional. Humanize output using time_since 715 645 * @param bool $gmt Optional. Use GMT 716 * @uses bbp_get_reply_id() To get the reply id717 * @uses get_post_time() to get the reply post time718 * @uses bbp_get_time_since() to maybe humanize the reply post time719 646 * @return string 720 647 */ … … 747 674 * @param string $content Optional. Content to which we need to append the revisions to 748 675 * @param int $reply_id Optional. Reply id 749 * @uses bbp_get_reply_revision_log() To get the reply revision log750 * @uses apply_filters() Calls 'bbp_reply_append_revisions' with the processed751 * content, original content and reply id752 676 * @return string Content with the revisions appended 753 677 */ … … 772 696 * 773 697 * @param int $reply_id Optional. Reply id 774 * @uses bbp_get_reply_revision_log() To get the reply revision log775 698 */ 776 699 function bbp_reply_revision_log( $reply_id = 0 ) { … … 783 706 * 784 707 * @param int $reply_id Optional. Reply id 785 * @uses bbp_get_reply_id() To get the reply id786 * @uses bbp_get_reply_revisions() To get the reply revisions787 * @uses bbp_get_reply_raw_revision_log() To get the raw revision log788 * @uses bbp_get_reply_author_display_name() To get the reply author789 * @uses bbp_get_reply_author_link() To get the reply author link790 * @uses bbp_convert_date() To convert the date791 * @uses bbp_get_time_since() To get the time in since format792 * @uses apply_filters() Calls 'bbp_get_reply_revision_log' with the793 * log and reply id794 708 * @return string Revision log of the reply 795 709 */ … … 855 769 * 856 770 * @param int $reply_id Optional. Reply id 857 * @uses bbp_get_reply_id() To get the reply id858 * @uses get_post_meta() To get the revision log meta859 * @uses apply_filters() Calls 'bbp_get_reply_raw_revision_log'860 * with the log and reply id861 771 * @return string Raw revision log of the reply 862 772 */ … … 876 786 * 877 787 * @param int $reply_id Optional. Reply id 878 * @uses bbp_get_reply_id() To get the reply id879 * @uses wp_get_post_revisions() To get the reply revisions880 * @uses apply_filters() Calls 'bbp_get_reply_revisions'881 * with the revisions and reply id882 788 * @return string reply revisions 883 789 */ … … 897 803 * @param int $reply_id Optional. Reply id 898 804 * @param boolean $integer Optional. Whether or not to format the result 899 * @uses bbp_get_reply_revisions() To get the reply revisions900 * @uses apply_filters() Calls 'bbp_get_reply_revision_count'901 * with the revision count and reply id902 805 * @return string reply revision count 903 806 */ … … 918 821 * 919 822 * @param int $reply_id Optional. Reply id 920 * @uses bbp_get_reply_status() To get the reply status921 823 */ 922 824 function bbp_reply_status( $reply_id = 0 ) { … … 929 831 * 930 832 * @param int $reply_id Optional. Reply id 931 * @uses bbp_get_reply_id() To get the reply id932 * @uses get_post_status() To get the reply status933 * @uses apply_filters() Calls 'bbp_get_reply_status' with the reply id934 833 * @return string Status of reply 935 834 */ … … 947 846 * 948 847 * @param int $reply_id Optional. Topic id 949 * @uses bbp_get_reply_id() To get the reply id950 * @uses bbp_get_reply_status() To get the reply status951 848 * @return bool True if published, false if not. 952 849 */ … … 966 863 * 967 864 * @param int $reply_id Optional. Reply id 968 * @uses bbp_get_reply_id() To get the reply id969 * @uses bbp_get_reply_status() To get the reply status970 865 * @return bool True if spam, false if not. 971 866 */ … … 985 880 * 986 881 * @param int $reply_id Optional. Topic id 987 * @uses bbp_get_reply_id() To get the reply id988 * @uses bbp_get_reply_status() To get the reply status989 882 * @return bool True if spam, false if not. 990 883 */ … … 1004 897 * 1005 898 * @param int $reply_id Optional. Topic id 1006 * @uses bbp_get_reply_id() To get the reply id1007 * @uses bbp_get_reply_status() To get the reply status1008 * @uses apply_filters() Calls 'bbp_is_reply_pending' with the reply id1009 899 * @return bool True if pending, false if not. 1010 900 */ … … 1024 914 * 1025 915 * @param int $reply_id Optional. Topic id 1026 * @uses bbp_get_reply_id() To get the reply id1027 * @uses bbp_get_reply_status() To get the reply status1028 * @uses apply_filters() Calls 'bbp_is_reply_private' with the reply id1029 916 * @return bool True if private, false if not. 1030 917 */ … … 1044 931 * 1045 932 * @param int $reply_id Optional. Reply id 1046 * @uses bbp_get_reply_id() To get the reply id1047 * @uses bbp_get_reply_author_id() To get the reply author id1048 * @uses get_post_meta() To get the anonymous name and email metas1049 933 * @return bool True if the post is by an anonymous user, false if not. 1050 934 */ … … 1077 961 * 1078 962 * @param int $reply_id Optional. Reply id 1079 * @uses bbp_get_reply_author() To get the reply author1080 963 */ 1081 964 function bbp_reply_author( $reply_id = 0 ) { … … 1092 975 * 1093 976 * @param int $reply_id Optional. Reply id 1094 * @uses bbp_get_reply_id() To get the reply id1095 * @uses bbp_is_reply_anonymous() To check if the reply is by an1096 * anonymous user1097 * @uses get_the_author_meta() To get the reply author display name1098 * @uses get_post_meta() To get the anonymous poster name1099 * @uses apply_filters() Calls 'bbp_get_reply_author' with the reply1100 * author and reply id1101 977 * @return string Author of reply 1102 978 */ … … 1120 996 * 1121 997 * @param int $reply_id Optional. Reply id 1122 * @uses bbp_get_reply_author_id() To get the reply author id1123 998 */ 1124 999 function bbp_reply_author_id( $reply_id = 0 ) { … … 1131 1006 * 1132 1007 * @param int $reply_id Optional. Reply id 1133 * @uses bbp_get_reply_id() To get the reply id1134 * @uses get_post_field() To get the reply author id1135 * @uses apply_filters() Calls 'bbp_get_reply_author_id' with the author1136 * id and reply id1137 1008 * @return string Author id of reply 1138 1009 */ … … 1151 1022 * 1152 1023 * @param int $reply_id Optional. Reply id 1153 * @uses bbp_get_reply_author_display_name()1154 1024 */ 1155 1025 function bbp_reply_author_display_name( $reply_id = 0 ) { … … 1162 1032 * 1163 1033 * @param int $reply_id Optional. Reply id 1164 * @uses bbp_get_reply_id() To get the reply id1165 * @uses bbp_is_reply_anonymous() To check if the reply is by an1166 * anonymous user1167 * @uses bbp_get_reply_author_id() To get the reply author id1168 * @uses get_the_author_meta() To get the reply author's display name1169 * @uses get_post_meta() To get the anonymous poster's name1170 * @uses apply_filters() Calls 'bbp_get_reply_author_display_name' with1171 * the author display name and reply id1172 1034 * @return string The display name of the author of the reply 1173 1035 */ … … 1215 1077 * @param int $reply_id Optional. Reply id 1216 1078 * @param int $size Optional. Size of the avatar. Defaults to 40 1217 * @uses bbp_get_reply_author_avatar() To get the reply author id1218 1079 */ 1219 1080 function bbp_reply_author_avatar( $reply_id = 0, $size = 40 ) { … … 1227 1088 * @param int $reply_id Optional. Reply id 1228 1089 * @param int $size Optional. Size of the avatar. Defaults to 40 1229 * @uses bbp_get_reply_id() To get the reply id1230 * @uses bbp_is_reply_anonymous() To check if the reply is by an1231 * anonymous user1232 * @uses bbp_get_reply_author_id() To get the reply author id1233 * @uses get_post_meta() To get the anonymous poster's email id1234 * @uses get_avatar() To get the avatar1235 * @uses apply_filters() Calls 'bbp_get_reply_author_avatar' with the1236 * author avatar, reply id and size1237 1090 * @return string Avatar of author of the reply 1238 1091 */ … … 1260 1113 * 1261 1114 * @param array $args Optional. If it is an integer, it is used as reply id. 1262 * @uses bbp_get_reply_author_link() To get the reply author link1263 1115 */ 1264 1116 function bbp_reply_author_link( $args = array() ) { … … 1271 1123 * 1272 1124 * @param array $args Optional. If an integer, it is used as reply id. 1273 * @uses bbp_get_reply_id() To get the reply id1274 * @uses bbp_is_reply_anonymous() To check if the reply is by an1275 * anonymous user1276 * @uses bbp_get_reply_author_url() To get the reply author url1277 * @uses bbp_get_reply_author_avatar() To get the reply author avatar1278 * @uses bbp_get_reply_author_display_name() To get the reply author display1279 * name1280 * @uses bbp_get_user_display_role() To get the reply author display role1281 * @uses bbp_get_reply_author_id() To get the reply author id1282 * @uses apply_filters() Calls 'bbp_get_reply_author_link' with the1283 * author link and args1284 1125 * @return string Author link of reply 1285 1126 */ … … 1371 1212 * 1372 1213 * @param int $reply_id Optional. Reply id 1373 * @uses bbp_get_reply_author_url() To get the reply author url1374 1214 */ 1375 1215 function bbp_reply_author_url( $reply_id = 0 ) { … … 1382 1222 * 1383 1223 * @param int $reply_id Optional. Reply id 1384 * @uses bbp_get_reply_id() To get the reply id1385 * @uses bbp_is_reply_anonymous() To check if the reply is by an anonymous1386 * user1387 * @uses bbp_user_has_profile() To check if the user has a profile1388 * @uses bbp_get_reply_author_id() To get the reply author id1389 * @uses bbp_get_user_profile_url() To get the user profile url1390 * @uses get_post_meta() To get the anonymous poster's website url1391 * @uses apply_filters() Calls bbp_get_reply_author_url with the author1392 * url & reply id1393 1224 * @return string Author URL of the reply 1394 1225 */ … … 1416 1247 * 1417 1248 * @param int $reply_id Optional. Reply id 1418 * @uses bbp_get_reply_author_email() To get the reply author email1419 1249 */ 1420 1250 function bbp_reply_author_email( $reply_id = 0 ) { … … 1427 1257 * 1428 1258 * @param int $reply_id Optional. Reply id 1429 * @uses bbp_get_reply_id() To get the reply id1430 * @uses bbp_is_reply_anonymous() To check if the reply is by an anonymous1431 * user1432 * @uses bbp_get_reply_author_id() To get the reply author id1433 * @uses get_userdata() To get the user data1434 * @uses get_post_meta() To get the anonymous poster's website email1435 * @uses apply_filters() Calls bbp_get_reply_author_email with the author1436 * email & reply id1437 1259 * @return string Reply author email address 1438 1260 */ … … 1470 1292 * 1471 1293 * @param array $args Optional. 1472 * @uses bbp_get_reply_author_role() To get the reply author role1473 1294 */ 1474 1295 function bbp_reply_author_role( $args = array() ) { … … 1481 1302 * 1482 1303 * @param array $args Optional. 1483 * @uses bbp_get_reply_id() To get the reply id1484 * @uses bbp_get_user_display_role() To get the user display role1485 * @uses bbp_get_reply_author_id() To get the reply author id1486 * @uses apply_filters() Calls bbp_get_reply_author_role with the author1487 * role & args1488 1304 * @return string Reply author role 1489 1305 */ … … 1521 1337 * 1522 1338 * @param int $reply_id Optional. Reply id 1523 * @uses bbp_get_reply_topic_title() To get the reply topic title1524 1339 */ 1525 1340 function bbp_reply_topic_title( $reply_id = 0 ) { … … 1532 1347 * 1533 1348 * @param int $reply_id Optional. Reply id 1534 * @uses bbp_get_reply_id() To get the reply id1535 * @uses bbp_get_reply_topic_id() To get the reply topic id1536 * @uses bbp_get_topic_title() To get the reply topic title1537 * @uses apply_filters() Calls 'bbp_get_reply_topic_title' with the1538 * topic title and reply id1539 1349 * @return string The topic title of the reply 1540 1350 */ … … 1553 1363 * 1554 1364 * @param int $reply_id Optional. Reply id 1555 * @uses bbp_get_reply_topic_id() To get the reply topic id1556 1365 */ 1557 1366 function bbp_reply_topic_id( $reply_id = 0 ) { … … 1564 1373 * 1565 1374 * @param int $reply_id Optional. Reply id 1566 * @uses bbp_get_reply_id() To get the reply id1567 * @uses get_post_meta() To get the reply topic id from meta1568 * @uses bbp_get_topic_id() To get the topic id1569 * @uses apply_filters() Calls 'bbp_get_reply_topic_id' with the topic1570 * id and reply id1571 1375 * @return int The topic id of the reply 1572 1376 */ … … 1595 1399 * 1596 1400 * @param int $reply_id Optional. Reply id 1597 * @uses bbp_get_reply_forum_id() To get the reply forum id1598 1401 */ 1599 1402 function bbp_reply_forum_id( $reply_id = 0 ) { … … 1606 1409 * 1607 1410 * @param int $reply_id Optional. Reply id 1608 * @uses bbp_get_reply_id() To get the reply id1609 * @uses get_post_meta() To get the reply forum id1610 * @uses apply_filters() Calls 'bbp_get_reply_forum_id' with the forum1611 1411 * id and reply id 1612 1412 * @return int The forum id of the reply … … 1636 1436 * 1637 1437 * @param int $reply_id Optional. Reply id 1638 * @uses bbp_get_reply_ancestor_id() To get the ancestor id of the reply1639 1438 */ 1640 1439 function bbp_reply_ancestor_id( $reply_id = 0 ) { … … 1647 1446 * 1648 1447 * @param in $reply_id Reply id 1649 * @uses bbp_get_reply_id() To get the reply id1650 1448 */ 1651 1449 function bbp_get_reply_ancestor_id( $reply_id = 0 ) { … … 1675 1473 * 1676 1474 * @param int $reply_id Optional. Reply id 1677 * @uses bbp_get_reply_to() To get the reply to id1678 1475 */ 1679 1476 function bbp_reply_to( $reply_id = 0 ) { … … 1686 1483 * 1687 1484 * @param int $reply_id Optional. Reply id 1688 * @uses bbp_get_reply_id() To get the reply id1689 * @uses get_post_meta() To get the reply to id1690 * @uses apply_filters() Calls 'bbp_get_reply_to' with the reply to id and1691 * reply id1692 1485 * @return int The parent reply id of the reply 1693 1486 */ … … 1715 1508 * 1716 1509 * @param array $args 1717 * @uses bbp_get_reply_to_link() To get the reply to link1718 1510 */ 1719 1511 function bbp_reply_to_link( $args = array() ) { … … 1727 1519 * 1728 1520 * @param array $args Arguments 1729 * @uses bbp_current_user_can_access_create_reply_form() To check permissions1730 * @uses bbp_get_reply_id() To validate the reply id1731 * @uses bbp_get_reply() To get the reply1732 * @uses apply_filters() Calls 'bbp_get_reply_to_link' with the formatted link,1733 * the arguments array, and the reply1734 1521 * @return string Link for a reply to a reply 1735 1522 */ … … 1793 1580 * 1794 1581 * @since 2.4.0 bbPress (r4944) 1795 *1796 * @uses bbp_get_cancel_reply_to_link() To get the reply cancellation link1797 1582 */ 1798 1583 function bbp_cancel_reply_to_link( $text = '' ) { … … 1805 1590 * 1806 1591 * @param string $text The cancel text 1807 * @uses apply_filters() Calls 'bbp_get_cancel_reply_to_link' with the cancellation1808 * link and the cancel text1809 1592 * @return string The cancellation link 1810 1593 */ … … 1842 1625 * @param int $reply_id Optional. Reply id 1843 1626 * @param int $topic_id Optional. Topic id 1844 * @uses bbp_get_reply_position() To get the reply position1845 1627 */ 1846 1628 function bbp_reply_position( $reply_id = 0, $topic_id = 0 ) { … … 1854 1636 * @param int $reply_id Optional. Reply id 1855 1637 * @param int $topic_id Optional. Topic id 1856 * @uses bbp_get_reply_id() To get the reply id1857 * @uses bbp_get_reply_topic_id() Get the topic id of the reply id1858 * @uses bbp_get_topic_reply_count() To get the topic reply count1859 * @uses bbp_get_reply_post_type() To get the reply post type1860 * @uses bbp_get_reply_position_raw() To get calculate the reply position1861 * @uses bbp_update_reply_position() To update the reply position1862 * @uses bbp_show_lead_topic() Bump the count if lead topic is included1863 * @uses apply_filters() Calls 'bbp_get_reply_position' with the reply1864 * position, reply id and topic id1865 1638 * @return int Reply position 1866 1639 */ … … 1912 1685 * 1913 1686 * @param array $args See {@link bbp_get_reply_admin_links()} 1914 * @uses bbp_get_reply_admin_links() To get the reply admin links1915 1687 */ 1916 1688 function bbp_reply_admin_links( $args = array() ) { … … 1930 1702 * - links: Array of the links to display. By default, edit, trash, 1931 1703 * spam, reply move, and topic split links are displayed 1932 * @uses bbp_is_topic() To check if it's the topic page1933 * @uses bbp_is_reply() To check if it's the reply page1934 * @uses bbp_get_reply_id() To get the reply id1935 * @uses bbp_get_reply_edit_link() To get the reply edit link1936 * @uses bbp_get_reply_trash_link() To get the reply trash link1937 * @uses bbp_get_reply_spam_link() To get the reply spam link1938 * @uses bbp_get_reply_move_link() To get the reply move link1939 * @uses bbp_get_topic_split_link() To get the topic split link1940 * @uses current_user_can() To check if the current user can edit or1941 * delete the reply1942 * @uses apply_filters() Calls 'bbp_get_reply_admin_links' with the1943 * reply admin links and args1944 1704 * @return string Reply admin links 1945 1705 */ … … 2013 1773 * 2014 1774 * @param array $args See {@link bbp_get_reply_edit_link()} 2015 * @uses bbp_get_reply_edit_link() To get the reply edit link2016 1775 */ 2017 1776 function bbp_reply_edit_link( $args = array() ) { … … 2029 1788 * - link_after: HTML after the link 2030 1789 * - edit_text: Edit text. Defaults to 'Edit' 2031 * @uses bbp_get_reply_id() To get the reply id2032 * @uses bbp_get_reply() To get the reply2033 * @uses current_user_can() To check if the current user can edit the2034 * reply2035 * @uses bbp_get_reply_edit_url() To get the reply edit url2036 * @uses apply_filters() Calls 'bbp_get_reply_edit_link' with the reply2037 * edit link and args2038 1790 * @return string Reply edit link 2039 1791 */ … … 2080 1832 * 2081 1833 * @param int $reply_id Optional. Reply id 2082 * @uses bbp_get_reply_edit_url() To get the reply edit url2083 1834 */ 2084 1835 function bbp_reply_edit_url( $reply_id = 0 ) { … … 2091 1842 * 2092 1843 * @param int $reply_id Optional. Reply id 2093 * @uses bbp_get_reply_id() To get the reply id2094 * @uses bbp_get_reply() To get the reply2095 * @uses bbp_get_reply_post_type() To get the reply post type2096 * @uses add_query_arg() To add custom args to the url2097 * @uses apply_filters() Calls 'bbp_get_reply_edit_url' with the edit2098 * url and reply id2099 1844 * @return string Reply edit url 2100 1845 */ … … 2136 1881 * 2137 1882 * @param array $args See {@link bbp_get_reply_trash_link()} 2138 * @uses bbp_get_reply_trash_link() To get the reply trash link2139 1883 */ 2140 1884 function bbp_reply_trash_link( $args = array() ) { … … 2155 1899 * - restore_text: Restore text 2156 1900 * - delete_text: Delete text 2157 * @uses bbp_get_reply_id() To get the reply id2158 * @uses bbp_get_reply() To get the reply2159 * @uses current_user_can() To check if the current user can delete the2160 * reply2161 * @uses bbp_is_reply_trash() To check if the reply is trashed2162 * @uses bbp_get_reply_status() To get the reply status2163 * @uses add_query_arg() To add custom args to the url2164 * @uses wp_nonce_url() To nonce the url2165 * @uses esc_url() To escape the url2166 * @uses bbp_get_reply_edit_url() To get the reply edit url2167 * @uses apply_filters() Calls 'bbp_get_reply_trash_link' with the reply2168 * trash link and args2169 1901 * @return string Reply trash link 2170 1902 */ … … 2220 1952 * 2221 1953 * @param array $args See {@link bbp_get_reply_spam_link()} 2222 * @uses bbp_get_reply_spam_link() To get the reply spam link2223 1954 */ 2224 1955 function bbp_reply_spam_link( $args = array() ) { … … 2237 1968 * - spam_text: Spam text 2238 1969 * - unspam_text: Unspam text 2239 * @uses bbp_get_reply_id() To get the reply id2240 * @uses bbp_get_reply() To get the reply2241 * @uses current_user_can() To check if the current user can edit the2242 * reply2243 * @uses bbp_is_reply_spam() To check if the reply is marked as spam2244 * @uses add_query_arg() To add custom args to the url2245 * @uses wp_nonce_url() To nonce the url2246 * @uses esc_url() To escape the url2247 * @uses bbp_get_reply_edit_url() To get the reply edit url2248 * @uses apply_filters() Calls 'bbp_get_reply_spam_link' with the reply2249 * spam link and args2250 1970 * @return string Reply spam link 2251 1971 */ … … 2286 2006 * 2287 2007 * @param array $args See {@link bbp_get_reply_move_link()} 2288 * @uses bbp_get_reply_move_link() To get the reply move link2289 2008 */ 2290 2009 function bbp_reply_move_link( $args = array() ) { … … 2305 2024 * - move_text: Move text 2306 2025 * - move_title: Move title attribute 2307 * @uses bbp_get_reply_id() To get the reply id2308 * @uses bbp_get_reply() To get the reply2309 * @uses current_user_can() To check if the current user can edit the2310 * topic2311 * @uses bbp_get_reply_topic_id() To get the reply topic id2312 * @uses bbp_get_reply_edit_url() To get the reply edit url2313 * @uses add_query_arg() To add custom args to the url2314 * @uses wp_nonce_url() To nonce the url2315 * @uses esc_url() To escape the url2316 * @uses apply_filters() Calls 'bbp_get_reply_move_link' with the reply2317 * move link and args2318 2026 * @return string Reply move link 2319 2027 */ … … 2357 2065 * 2358 2066 * @param array $args See {@link bbp_get_topic_split_link()} 2359 * @uses bbp_get_topic_split_link() To get the topic split link2360 2067 */ 2361 2068 function bbp_topic_split_link( $args = array() ) { … … 2376 2083 * - split_text: Split text 2377 2084 * - split_title: Split title attribute 2378 * @uses bbp_get_reply_id() To get the reply id2379 * @uses bbp_get_reply() To get the reply2380 * @uses current_user_can() To check if the current user can edit the2381 * topic2382 * @uses bbp_get_reply_topic_id() To get the reply topic id2383 * @uses bbp_get_topic_edit_url() To get the topic edit url2384 * @uses add_query_arg() To add custom args to the url2385 * @uses wp_nonce_url() To nonce the url2386 * @uses esc_url() To escape the url2387 * @uses apply_filters() Calls 'bbp_get_topic_split_link' with the topic2388 * split link and args2389 2085 * @return string Topic split link 2390 2086 */ … … 2426 2122 * 2427 2123 * @param array $args See {@link bbp_get_reply_approve_link()} 2428 * @uses bbp_get_reply_approve_link() To get the reply approve link2429 2124 */ 2430 2125 function bbp_reply_approve_link( $args = array() ) { … … 2444 2139 * - approve_text: Approve text 2445 2140 * - unapprove_text: Unapprove text 2446 * @uses bbp_get_reply_id() To get the reply id2447 * @uses bbp_get_reply() To get the reply2448 * @uses current_user_can() To check if the current user can approve the reply2449 * @uses bbp_is_reply_pending() To check if the reply is pending2450 * @uses add_query_arg() To add custom args to the url2451 * @uses wp_nonce_url() To nonce the url2452 * @uses esc_url() To escape the url2453 * @uses apply_filters() Calls 'bbp_get_reply_approve_link' with the link2454 * and args2455 2141 * @return string Reply approve link 2456 2142 */ … … 2491 2177 * @param int $reply_id Optional. Reply ID 2492 2178 * @param array Extra classes you can pass when calling this function 2493 * @uses bbp_get_reply_class() To get the reply class2494 2179 */ 2495 2180 function bbp_reply_class( $reply_id = 0, $classes = array() ) { … … 2503 2188 * @param int $reply_id Optional. Reply ID 2504 2189 * @param array Extra classes you can pass when calling this function 2505 * @uses bbp_get_reply_id() To validate the reply id2506 * @uses bbp_get_reply_forum_id() To get the forum id of the reply2507 * @uses bbp_get_reply_topic_id() To get the topic id of the reply2508 * @uses get_post_class() To get all the classes including ours2509 * @uses apply_filters() Calls 'bbp_get_reply_class' with the classes2510 2190 * @return string Row class of the reply 2511 2191 */ … … 2534 2214 * @since 2.0.0 bbPress (r2519) 2535 2215 * 2536 * @uses bbp_get_topic_pagination_count() To get the topic pagination count2537 2216 */ 2538 2217 function bbp_topic_pagination_count() { … … 2544 2223 * @since 2.0.0 bbPress (r2519) 2545 2224 * 2546 * @uses bbp_number_format() To format the number value2547 * @uses bbp_show_lead_topic() Are we showing the topic as a lead?2548 * @uses apply_filters() Calls 'bbp_get_topic_pagination_count' with the2549 * pagination count2550 2225 * @return string Topic pagination count 2551 2226 */ … … 2608 2283 * 2609 2284 * @since 2.0.0 bbPress (r2519) 2610 *2611 * @uses bbp_get_topic_pagination_links() To get the topic pagination links2612 2285 */ 2613 2286 function bbp_topic_pagination_links() { … … 2619 2292 * @since 2.0.0 bbPress (r2519) 2620 2293 * 2621 * @uses apply_filters() Calls 'bbp_get_topic_pagination_links' with the2622 * pagination links2623 2294 * @return string Topic pagination links 2624 2295 */ … … 2640 2311 * 2641 2312 * @since 2.0.0 bbPress (r3130) 2642 *2643 * @uses bbp_get_form_reply_content() To get value of reply content field2644 2313 */ 2645 2314 function bbp_form_reply_content() { … … 2651 2320 * @since 2.0.0 bbPress (r3130) 2652 2321 * 2653 * @uses bbp_is_reply_edit() To check if it's the reply edit page2654 * @uses apply_filters() Calls 'bbp_get_form_reply_content' with the content2655 2322 * @return string Value of reply content field 2656 2323 */ … … 2678 2345 * 2679 2346 * @since 2.4.0 bbPress (r4944) 2680 *2681 * @uses bbp_get_form_reply_to() To get value of the reply to field2682 2347 */ 2683 2348 function bbp_form_reply_to() { … … 2690 2355 * @since 2.4.0 bbPress (r4944) 2691 2356 * 2692 * @uses bbp_get_reply_id() To validate the reply to2693 * @uses apply_filters() Calls 'bbp_get_form_reply_to' with the reply to2694 2357 * @return string Value of reply to field 2695 2358 */ … … 2731 2394 * @param int $reply_id 2732 2395 * 2733 * @uses BBP_Reply_Walker_Dropdown() As the default walker to generate the2734 * dropdown2735 * @uses current_user_can() To check if the current user can read2736 * private forums2737 * @uses bbp_get_reply_id() To get the reply ID2738 * @uses bbp_get_reply_to() To get the reply to ID2739 * @uses bbp_get_reply_topic_id() To get the replies topic ID2740 * @uses bbp_get_reply_post_type() To get the reply post type2741 * @uses bbp_get_public_status_id() To get the reply status2742 * @uses bbp_thread_replies_depth() To get the threaded replies depth2743 *2744 * @uses apply_filters() Calls 'bbp_get_dropdown' with the dropdown2745 * and args2746 2396 * @return string The dropdown 2747 2397 */ … … 2807 2457 * 2808 2458 * @since 2.0.0 bbPress (r3130) 2809 *2810 * @uses bbp_get_form_reply_log_edit() To get the reply log edit value2811 2459 */ 2812 2460 function bbp_form_reply_log_edit() { … … 2818 2466 * @since 2.0.0 bbPress (r3130) 2819 2467 * 2820 * @uses apply_filters() Calls 'bbp_get_form_reply_log_edit' with the2821 * log edit value2822 2468 * @return string Reply log edit checked value 2823 2469 */ … … 2844 2490 * 2845 2491 * @since 2.0.0 bbPress (r3130) 2846 *2847 * @uses bbp_get_form_reply_edit_reason() To get the reply edit reason value2848 2492 */ 2849 2493 function bbp_form_reply_edit_reason() { … … 2855 2499 * @since 2.0.0 bbPress (r3130) 2856 2500 * 2857 * @uses apply_filters() Calls 'bbp_get_form_reply_edit_reason' with the2858 * reply edit reason value2859 2501 * @return string Reply edit reason value 2860 2502 */
Note: See TracChangeset
for help on using the changeset viewer.