Changeset 6248
- Timestamp:
- 01/16/2017 05:38:51 PM (10 years ago)
- Location:
- trunk/src/includes
- Files:
-
- 3 edited
-
core/filters.php (modified) (2 diffs)
-
forums/template.php (modified) (1 diff)
-
replies/template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/filters.php
r6056 r6248 172 172 add_filter( 'bbp_get_form_reply_content', 'trim' ); 173 173 174 // Form input output - sanitize174 // Form input/output - sanitize 175 175 add_filter( 'bbp_get_form_reply_edit_reason', 'esc_attr' ); 176 176 add_filter( 'bbp_get_form_reply_edit_reason', 'trim' ); … … 181 181 add_filter( 'bbp_get_form_topic_tags', 'esc_attr' ); 182 182 add_filter( 'bbp_get_form_topic_tags', 'trim' ); 183 add_filter( 'bbp_get_form_forum_type', 'esc_attr' ); 184 add_filter( 'bbp_get_form_forum_type', 'trim' ); 185 add_filter( 'bbp_get_form_forum_visibility', 'esc_attr' ); 186 add_filter( 'bbp_get_form_forum_visibility', 'trim' ); 187 add_filter( 'bbp_get_form_forum_moderators', 'esc_attr' ); 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' ); 183 192 184 193 // Add number format filter to functions requiring numeric output -
trunk/src/includes/forums/template.php
r6226 r6248 2346 2346 } 2347 2347 2348 return apply_filters( 'bbp_get_form_forum_parent', esc_attr( $forum_parent ));2348 return apply_filters( 'bbp_get_form_forum_parent', $forum_parent ); 2349 2349 } 2350 2350 -
trunk/src/includes/replies/template.php
r6246 r6248 2601 2601 } 2602 2602 2603 return (int)apply_filters( 'bbp_get_form_reply_to', $reply_to );2603 return apply_filters( 'bbp_get_form_reply_to', $reply_to ); 2604 2604 } 2605 2605
Note:
See TracChangeset
for help on using the changeset viewer.