Changeset 6855 for trunk/src/includes/topics/functions.php
- Timestamp:
- 08/22/2018 03:11:02 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/topics/functions.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/functions.php
r6850 r6855 254 254 } 255 255 256 /** Topic B lacklist*******************************************************/257 258 if ( ! bbp_check_for_ blacklist( $anonymous_data, $topic_author, $topic_title, $topic_content) ) {259 bbp_add_error( 'bbp_topic_ blacklist', __( '<strong>ERROR</strong>: Your topic cannot be created at this time.', 'bbpress' ) );256 /** Topic Bad Words *******************************************************/ 257 258 if ( ! bbp_check_for_moderation( $anonymous_data, $topic_author, $topic_title, $topic_content, true ) ) { 259 bbp_add_error( 'bbp_topic_moderation', __( '<strong>ERROR</strong>: Your topic cannot be created at this time.', 'bbpress' ) ); 260 260 } 261 261 … … 269 269 $topic_status = bbp_get_pending_status_id(); 270 270 271 // Check a whitelist ofpossible topic status ID's271 // Check possible topic status ID's 272 272 } elseif ( ! empty( $_POST['bbp_topic_status'] ) && in_array( $_POST['bbp_topic_status'], array_keys( $topic_statuses ), true ) ) { 273 273 $topic_status = sanitize_key( $_POST['bbp_topic_status'] ); … … 550 550 } 551 551 552 /** Topic B lacklist*******************************************************/553 554 if ( ! bbp_check_for_ blacklist( $anonymous_data, $topic_author, $topic_title, $topic_content) ) {555 bbp_add_error( 'bbp_topic_ blacklist', __( '<strong>ERROR</strong>: Your topic cannot be edited at this time.', 'bbpress' ) );552 /** Topic Bad Words *******************************************************/ 553 554 if ( ! bbp_check_for_moderation( $anonymous_data, $topic_author, $topic_title, $topic_content, true ) ) { 555 bbp_add_error( 'bbp_topic_moderation', __( '<strong>ERROR</strong>: Your topic cannot be edited at this time.', 'bbpress' ) ); 556 556 } 557 557 … … 569 569 } 570 570 571 // Check a whitelist ofpossible topic status ID's571 // Check possible topic status ID's 572 572 } elseif ( ! empty( $_POST['bbp_topic_status'] ) && in_array( $_POST['bbp_topic_status'], array_keys( $topic_statuses ), true ) ) { 573 573 $topic_status = sanitize_key( $_POST['bbp_topic_status'] );
Note: See TracChangeset
for help on using the changeset viewer.