Changeset 7037
- Timestamp:
- 12/13/2019 10:03:22 PM (6 years ago)
- Location:
- trunk/src/includes
- Files:
-
- 2 edited
-
replies/functions.php (modified) (2 diffs)
-
topics/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/functions.php
r7007 r7037 1488 1488 $reply = bbp_get_reply( $reply_id ); 1489 1489 if ( empty( $reply ) ) { 1490 bbp_add_error( 'bbp_toggle_reply_missing', __( '<strong>ERROR :</strong>This reply could not be found or no longer exists.', 'bbpress' ) );1490 bbp_add_error( 'bbp_toggle_reply_missing', __( '<strong>ERROR</strong>: This reply could not be found or no longer exists.', 'bbpress' ) ); 1491 1491 return; 1492 1492 } … … 1494 1494 // What is the user doing here? 1495 1495 if ( ! current_user_can( 'edit_reply', $reply_id ) || ( 'bbp_toggle_reply_trash' === $action && ! current_user_can( 'delete_reply', $reply_id ) ) ) { 1496 bbp_add_error( 'bbp_toggle_reply_permission', __( '<strong>ERROR :</strong>You do not have permission to do that.', 'bbpress' ) );1496 bbp_add_error( 'bbp_toggle_reply_permission', __( '<strong>ERROR</strong>: You do not have permission to do that.', 'bbpress' ) ); 1497 1497 return; 1498 1498 } -
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.