Changeset 7036
- Timestamp:
- 12/13/2019 09:59:43 PM (4 years ago)
- Location:
- branches/2.6/src/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/src/includes/replies/functions.php
r6923 r7036 1487 1487 $reply = bbp_get_reply( $reply_id ); 1488 1488 if ( empty( $reply ) ) { 1489 bbp_add_error( 'bbp_toggle_reply_missing', __( '<strong>ERROR :</strong>This reply could not be found or no longer exists.', 'bbpress' ) );1489 bbp_add_error( 'bbp_toggle_reply_missing', __( '<strong>ERROR</strong>: This reply could not be found or no longer exists.', 'bbpress' ) ); 1490 1490 return; 1491 1491 } … … 1493 1493 // What is the user doing here? 1494 1494 if ( ! current_user_can( 'edit_reply', $reply_id ) || ( 'bbp_toggle_reply_trash' === $action && ! current_user_can( 'delete_reply', $reply_id ) ) ) { 1495 bbp_add_error( 'bbp_toggle_reply_permission', __( '<strong>ERROR :</strong>You do not have permission to do that.', 'bbpress' ) );1495 bbp_add_error( 'bbp_toggle_reply_permission', __( '<strong>ERROR</strong>: You do not have permission to do that.', 'bbpress' ) ); 1496 1496 return; 1497 1497 } -
branches/2.6/src/includes/topics/functions.php
r6923 r7036 2017 2017 $topic = bbp_get_topic( $topic_id ); 2018 2018 if ( empty( $topic ) ) { 2019 bbp_add_error( 'bbp_toggle_topic_missing', __( '<strong>ERROR :</strong>This topic could not be found or no longer exists.', 'bbpress' ) );2019 bbp_add_error( 'bbp_toggle_topic_missing', __( '<strong>ERROR</strong>: This topic could not be found or no longer exists.', 'bbpress' ) ); 2020 2020 return; 2021 2021 } … … 2023 2023 // What is the user doing here? 2024 2024 if ( ! current_user_can( 'edit_topic', $topic_id ) || ( 'bbp_toggle_topic_trash' === $action && ! current_user_can( 'delete_topic', $topic_id ) ) ) { 2025 bbp_add_error( 'bbp_toggle_topic_permission', __( '<strong>ERROR :</strong>You do not have permission to do that.', 'bbpress' ) );2025 bbp_add_error( 'bbp_toggle_topic_permission', __( '<strong>ERROR</strong>: You do not have permission to do that.', 'bbpress' ) ); 2026 2026 return; 2027 2027 }
Note: See TracChangeset
for help on using the changeset viewer.