Changeset 6301
- Timestamp:
- 02/23/2017 05:48:52 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/filters.php
r6297 r6301 187 187 add_filter( 'bbp_get_form_forum_moderators', 'esc_attr' ); 188 188 add_filter( 'bbp_get_form_forum_moderators', 'trim' ); 189 add_filter( 'bbp_get_form_topic_forum', ' absint' );190 add_filter( 'bbp_get_form_forum_parent', ' absint' );191 add_filter( 'bbp_get_form_reply_to', ' absint' );189 add_filter( 'bbp_get_form_topic_forum', 'intval' ); 190 add_filter( 'bbp_get_form_forum_parent', 'intval' ); 191 add_filter( 'bbp_get_form_reply_to', 'intval' ); 192 192 193 193 // Add number format filter to functions requesting formatted values … … 207 207 add_filter( 'bbp_get_topic_reply_count_hidden', 'bbp_number_format', 10 ); 208 208 209 // Add absint filter to functions expecting absolute values 210 add_filter( 'bbp_get_user_topic_count_int', 'absint', 10 ); 211 add_filter( 'bbp_get_user_reply_count_int', 'absint', 10 ); 212 add_filter( 'bbp_get_user_post_count_int', 'absint', 10 ); 213 add_filter( 'bbp_get_forum_subforum_count_int', 'absint', 10 ); 214 add_filter( 'bbp_get_forum_topic_count_int', 'absint', 10 ); 215 add_filter( 'bbp_get_forum_reply_count_int', 'absint', 10 ); 216 add_filter( 'bbp_get_forum_post_count_int', 'absint', 10 ); 217 add_filter( 'bbp_get_topic_voice_count_int', 'absint', 10 ); 218 add_filter( 'bbp_get_topic_reply_count_int', 'absint', 10 ); 219 add_filter( 'bbp_get_topic_post_count_int', 'absint', 10 ); 220 add_filter( 'bbp_get_forum_topic_count_hidden_int', 'absint', 10 ); 221 add_filter( 'bbp_get_topic_reply_count_hidden_int', 'absint', 10 ); 209 // Add intval filter to functions expecting absolute values 210 add_filter( 'bbp_get_user_topic_count_int', 'intval', 10 ); 211 add_filter( 'bbp_get_user_reply_count_int', 'intval', 10 ); 212 add_filter( 'bbp_get_user_post_count_int', 'intval', 10 ); 213 add_filter( 'bbp_get_forum_subforum_count_int', 'intval', 10 ); 214 add_filter( 'bbp_get_forum_topic_count_int', 'intval', 10 ); 215 add_filter( 'bbp_get_forum_reply_count_int', 'intval', 10 ); 216 add_filter( 'bbp_get_forum_post_count_int', 'intval', 10 ); 217 add_filter( 'bbp_get_topic_voice_count_int', 'intval', 10 ); 218 add_filter( 'bbp_get_topic_reply_count_int', 'intval', 10 ); 219 add_filter( 'bbp_get_topic_post_count_int', 'intval', 10 ); 220 add_filter( 'bbp_get_forum_topic_count_hidden_int', 'intval', 10 ); 221 add_filter( 'bbp_get_topic_reply_count_hidden_int', 'intval', 10 ); 222 add_filter( 'bbp_get_topic_revision_count_int', 'intval', 10 ); 223 add_filter( 'bbp_get_reply_revision_count_int', 'intval', 10 ); 222 224 223 225 // Sanitize displayed user data
Note: See TracChangeset
for help on using the changeset viewer.