Changeset 6438 for trunk/src/includes/replies/functions.php
- Timestamp:
- 05/27/2017 05:04:31 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/functions.php
r6415 r6438 77 77 do_action( 'bbp_insert_reply', (int) $reply_id, (int) $reply_meta['topic_id'], (int) $reply_meta['forum_id'] ); 78 78 79 // Return new reply ID79 // Return reply_id 80 80 return $reply_id; 81 81 } … … 1089 1089 $forum_id = bbp_update_forum_id( $reply_id, $forum_id ); 1090 1090 1091 // Filter & return 1091 1092 return (int) apply_filters( 'bbp_update_reply_forum_id', $forum_id, $reply_id ); 1092 1093 } … … 1138 1139 $topic_id = bbp_update_topic_id( $reply_id, $topic_id ); 1139 1140 1141 // Filter & return 1140 1142 return (int) apply_filters( 'bbp_update_reply_topic_id', $topic_id, $reply_id ); 1141 1143 } … … 1173 1175 } 1174 1176 1177 // Filter & return 1175 1178 return (int) apply_filters( 'bbp_update_reply_to', $reply_to, $reply_id ); 1176 1179 } … … 1222 1225 } 1223 1226 1227 // Filter & return 1224 1228 return (array) apply_filters( 'bbp_get_reply_ancestors', $ancestors, $reply_id ); 1225 1229 } … … 1264 1268 update_post_meta( $r['reply_id'], '_bbp_revision_log', $revision_log ); 1265 1269 1270 // Filter & return 1266 1271 return apply_filters( 'bbp_update_reply_revision_log', $revision_log, $r['reply_id'] ); 1267 1272 } … … 1765 1770 */ 1766 1771 function bbp_get_reply_statuses( $reply_id = 0 ) { 1767 return apply_filters( 'bbp_get_reply_statuses', array( 1772 1773 // Filter & return 1774 return (array) apply_filters( 'bbp_get_reply_statuses', array( 1768 1775 bbp_get_public_status_id() => _x( 'Publish', 'Publish the reply', 'bbpress' ), 1769 1776 bbp_get_spam_status_id() => _x( 'Spam', 'Spam the reply', 'bbpress' ), … … 1783 1790 */ 1784 1791 function bbp_get_reply_toggles( $reply_id = 0 ) { 1785 return apply_filters( 'bbp_get_toggle_reply_actions', array( 1792 1793 // Filter & return 1794 return (array) apply_filters( 'bbp_get_toggle_reply_actions', array( 1786 1795 'bbp_toggle_reply_spam', 1787 1796 'bbp_toggle_reply_trash', … … 2115 2124 } 2116 2125 2117 // Filter andreturn2126 // Filter & return 2118 2127 return (int) apply_filters( 'bbp_get_replies_per_page', $retval, $default ); 2119 2128 } … … 2139 2148 } 2140 2149 2141 // Filter andreturn2150 // Filter & return 2142 2151 return (int) apply_filters( 'bbp_get_replies_per_rss_page', $retval, $default ); 2143 2152 } … … 2513 2522 } 2514 2523 2524 // Filter & return 2515 2525 return (bool) apply_filters( 'bbp_thread_replies', $retval, $depth, $allow ); 2516 2526 }
Note: See TracChangeset
for help on using the changeset viewer.