Changeset 12012 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-topic-resolution/inc/class-plugin.php
- Timestamp:
- 08/10/2022 05:03:34 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-topic-resolution/inc/class-plugin.php
r9479 r12012 287 287 // Check for empty topic id. 288 288 if ( empty( $topic_id ) || ! $topic ) { 289 bbp_add_error( 'wporg_bbp_topic_resolution_topic_id', __( '<strong>E RROR</strong>:No topic was found!', 'wporg-forums' ) );289 bbp_add_error( 'wporg_bbp_topic_resolution_topic_id', __( '<strong>Error:</strong> No topic was found!', 'wporg-forums' ) ); 290 290 291 291 // Check valid resolution. 292 292 } elseif ( ! $this->is_valid_topic_resolution( $resolution ) ) { 293 bbp_add_error( 'wporg_bbp_topic_resolution_invalid', __( '<strong>E RROR</strong>:That is not a valid topic resolution!', 'wporg-forums' ) );293 bbp_add_error( 'wporg_bbp_topic_resolution_invalid', __( '<strong>Error:</strong> That is not a valid topic resolution!', 'wporg-forums' ) ); 294 294 295 295 // Check user permissions. 296 296 } elseif ( ! $this->user_can_resolve( $user_id, $topic->ID ) ) { 297 bbp_add_error( 'wporg_bbp_topic_resolution_permissions', __( '<strong>E RROR</strong>:You don\'t have permission to do this!', 'wporg-forums' ) );297 bbp_add_error( 'wporg_bbp_topic_resolution_permissions', __( '<strong>Error:</strong> You don\'t have permission to do this!', 'wporg-forums' ) ); 298 298 299 299 // Check nonce. 300 300 } elseif ( ! bbp_verify_nonce_request( 'toggle-topic-resolution_' . $topic->ID ) ) { 301 bbp_add_error( 'wporg_bbp_topic_resolution_nonce', __( '<strong>E RROR</strong>:Are you sure you wanted to do that?', 'wporg-forums' ) );301 bbp_add_error( 'wporg_bbp_topic_resolution_nonce', __( '<strong>Error:</strong> Are you sure you wanted to do that?', 'wporg-forums' ) ); 302 302 } 303 303
Note: See TracChangeset
for help on using the changeset viewer.