Changeset 7037 for trunk/src/includes/topics/functions.php
- Timestamp:
- 12/13/2019 10:03:22 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/functions.php
r7006 r7037 2018 2018 $topic = bbp_get_topic( $topic_id ); 2019 2019 if ( empty( $topic ) ) { 2020 bbp_add_error( 'bbp_toggle_topic_missing', __( '<strong>ERROR :</strong>This topic could not be found or no longer exists.', 'bbpress' ) );2020 bbp_add_error( 'bbp_toggle_topic_missing', __( '<strong>ERROR</strong>: This topic could not be found or no longer exists.', 'bbpress' ) ); 2021 2021 return; 2022 2022 } … … 2024 2024 // What is the user doing here? 2025 2025 if ( ! current_user_can( 'edit_topic', $topic_id ) || ( 'bbp_toggle_topic_trash' === $action && ! current_user_can( 'delete_topic', $topic_id ) ) ) { 2026 bbp_add_error( 'bbp_toggle_topic_permission', __( '<strong>ERROR :</strong>You do not have permission to do that.', 'bbpress' ) );2026 bbp_add_error( 'bbp_toggle_topic_permission', __( '<strong>ERROR</strong>: You do not have permission to do that.', 'bbpress' ) ); 2027 2027 return; 2028 2028 }
Note: See TracChangeset
for help on using the changeset viewer.