Changeset 6526
- Timestamp:
- 06/12/2017 02:21:34 PM (7 years ago)
- Location:
- trunk/src/includes/replies
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/functions.php
r6499 r6526 838 838 * @uses bbp_update_reply_topic_id() To update the reply topic id 839 839 * @uses bbp_update_reply_to() To update the reply to id 840 * @uses bbp_update_reply_walker() To update the reply's ancestors' counts840 * @uses bbp_update_reply_walker() To update the ancestor counts of a reply 841 841 */ 842 842 function bbp_update_reply( $reply_id = 0, $topic_id = 0, $forum_id = 0, $anonymous_data = array(), $author_id = 0, $is_edit = false, $reply_to = 0 ) { … … 1063 1063 * @uses bbp_get_reply_id() To get the reply id 1064 1064 * @uses bbp_get_forum_id() To get the forum id 1065 * @uses get_post_ancestors() To get the reply's forum1065 * @uses get_post_ancestors() To get the ancestors of a reply 1066 1066 * @uses get_post_field() To get the post type of the post 1067 1067 * @uses update_post_meta() To update the reply forum id meta 1068 1068 * @uses apply_filters() Calls 'bbp_update_reply_forum_id' with the forum id 1069 1069 * and reply id 1070 * @return bool Reply's forum id1070 * @return bool The forum id of the reply 1071 1071 */ 1072 1072 function bbp_update_reply_forum_id( $reply_id = 0, $forum_id = 0 ) { … … 1113 1113 * @uses bbp_get_reply_id() To get the reply id 1114 1114 * @uses bbp_get_topic_id() To get the topic id 1115 * @uses get_post_ancestors() To get the reply's topic1115 * @uses get_post_ancestors() To get the ancestors of a reply 1116 1116 * @uses get_post_field() To get the post type of the post 1117 1117 * @uses update_post_meta() To update the reply topic id meta 1118 1118 * @uses apply_filters() Calls 'bbp_update_reply_topic_id' with the topic id 1119 1119 * and reply id 1120 * @return bool Reply's topic id1120 * @return bool The topic id of the reply 1121 1121 */ 1122 1122 function bbp_update_reply_topic_id( $reply_id = 0, $topic_id = 0 ) { … … 1155 1155 1156 1156 /* 1157 * Update the reply's meta data with its reply to id1157 * Update the meta data with its parent reply-to id, of a reply 1158 1158 * 1159 1159 * @since 2.4.0 bbPress (r4944) … … 1165 1165 * @uses apply_filters() Calls 'bbp_update_reply_to' with the reply id and 1166 1166 * and reply to id 1167 * @return bool Reply's parent reply id1167 * @return bool The parent reply id of the reply 1168 1168 */ 1169 1169 function bbp_update_reply_to( $reply_id = 0, $reply_to = 0 ) { … … 1343 1343 /** Topic to Move From ***************************************************/ 1344 1344 1345 // Get the reply's current topic1345 // Get the current topic a reply is in 1346 1346 $source_topic = bbp_get_topic( $move_reply->post_parent ); 1347 1347 -
trunk/src/includes/replies/template.php
r6487 r6526 1169 1169 * @uses apply_filters() Calls 'bbp_get_reply_author_display_name' with 1170 1170 * the author display name and reply id 1171 * @return string Reply's author's display name1171 * @return string The display name of the author of the reply 1172 1172 */ 1173 1173 function bbp_get_reply_author_display_name( $reply_id = 0 ) { … … 1536 1536 * @uses apply_filters() Calls 'bbp_get_reply_topic_title' with the 1537 1537 * topic title and reply id 1538 * @return string Reply's topic's title1538 * @return string The topic title of the reply 1539 1539 */ 1540 1540 function bbp_get_reply_topic_title( $reply_id = 0 ) { … … 1568 1568 * @uses apply_filters() Calls 'bbp_get_reply_topic_id' with the topic 1569 1569 * id and reply id 1570 * @return int Reply's topic id1570 * @return int The topic id of the reply 1571 1571 */ 1572 1572 function bbp_get_reply_topic_id( $reply_id = 0 ) { … … 1609 1609 * @uses apply_filters() Calls 'bbp_get_reply_forum_id' with the forum 1610 1610 * id and reply id 1611 * @return int Reply's forum id1611 * @return int The forum id of the reply 1612 1612 */ 1613 1613 function bbp_get_reply_forum_id( $reply_id = 0 ) { … … 1630 1630 1631 1631 /** 1632 * Output the reply's ancestor reply id1632 * Output the ancestor reply id of a reply 1633 1633 * 1634 1634 * @since 2.4.0 bbPress (r4944) 1635 1635 * 1636 1636 * @param int $reply_id Optional. Reply id 1637 * @uses bbp_get_reply_ancestor_id() To get the reply's ancestor id1637 * @uses bbp_get_reply_ancestor_id() To get the ancestor id of the reply 1638 1638 */ 1639 1639 function bbp_reply_ancestor_id( $reply_id = 0 ) { … … 1641 1641 } 1642 1642 /** 1643 * Return the reply's ancestor reply id1643 * Return the ancestor reply id of a reply 1644 1644 * 1645 1645 * @since 2.4.0 bbPress (r4944) … … 1689 1689 * @uses apply_filters() Calls 'bbp_get_reply_to' with the reply to id and 1690 1690 * reply id 1691 * @return int Reply's reply to id1691 * @return int The parent reply id of the reply 1692 1692 */ 1693 1693 function bbp_get_reply_to( $reply_id = 0 ) { … … 2503 2503 * @param array Extra classes you can pass when calling this function 2504 2504 * @uses bbp_get_reply_id() To validate the reply id 2505 * @uses bbp_get_reply_forum_id() To get the reply's forum id2506 * @uses bbp_get_reply_topic_id() To get the reply's topic id2505 * @uses bbp_get_reply_forum_id() To get the forum id of the reply 2506 * @uses bbp_get_reply_topic_id() To get the topic id of the reply 2507 2507 * @uses get_post_class() To get all the classes including ours 2508 2508 * @uses apply_filters() Calls 'bbp_get_reply_class' with the classes
Note: See TracChangeset
for help on using the changeset viewer.