Changeset 12012 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-stickies-compat.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/support-forums/inc/class-stickies-compat.php
r5960 r12012 120 120 // Check for empty topic or term id. 121 121 if ( ! $topic || ! $term ) { 122 bbp_add_error( 'wporg_bbp_sticky_topic_id', __( '<strong>E RROR</strong>:No topic was found! Which topic are you sticking?', 'wporg-forums' ) );122 bbp_add_error( 'wporg_bbp_sticky_topic_id', __( '<strong>Error:</strong> No topic was found! Which topic are you sticking?', 'wporg-forums' ) ); 123 123 124 124 // Check user. 125 125 } elseif ( ! $this->user_can_stick( $user_id, $term->term_id, $topic->ID ) ) { 126 bbp_add_error( 'wporg_bbp_sticky_logged_in', __( '<strong>E RROR</strong>:You do not have permission to do this!', 'wporg-forums' ) );126 bbp_add_error( 'wporg_bbp_sticky_logged_in', __( '<strong>Error:</strong> You do not have permission to do this!', 'wporg-forums' ) ); 127 127 128 128 // Check nonce. 129 129 } elseif( ! bbp_verify_nonce_request( 'toggle-topic-sticky_' . $topic->ID . '_' . $term->term_id ) ) { 130 bbp_add_error( 'wporg_bbp_sticky_nonce', __( '<strong>E RROR</strong>:Are you sure you wanted to do that?', 'wporg-forums' ) );130 bbp_add_error( 'wporg_bbp_sticky_nonce', __( '<strong>Error:</strong> Are you sure you wanted to do that?', 'wporg-forums' ) ); 131 131 } 132 132 … … 150 150 bbp_redirect( $permalink ); 151 151 } elseif ( true === $is_sticky && 'wporg_bbp_stick_compat_topic' == $action ) { 152 bbp_add_error( 'wporg_bbp_stick_compat_topic', __( '<strong>E RROR</strong>:There was a problem sticking that topic!', 'wporg-forums' ) );152 bbp_add_error( 'wporg_bbp_stick_compat_topic', __( '<strong>Error:</strong> There was a problem sticking that topic!', 'wporg-forums' ) ); 153 153 } elseif ( false === $is_sticky && 'wporg_bbp_unstick_compat_topic' == $action ) { 154 bbp_add_error( 'wporg_bbp_unstick_compat_topic', __( '<strong>E RROR</strong>:There was a problem unsticking that topic!', 'wporg-forums' ) );154 bbp_add_error( 'wporg_bbp_unstick_compat_topic', __( '<strong>Error:</strong> There was a problem unsticking that topic!', 'wporg-forums' ) ); 155 155 } 156 156 }
Note: See TracChangeset
for help on using the changeset viewer.