Changeset 4873
- Timestamp:
- 02/03/2017 10:58:49 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-user-moderation/inc/class-plugin.php
r4113 r4873 271 271 } 272 272 273 $class = 'wporg-bbp-user-flag'; 274 273 275 if ( $this->is_user_flagged( $user_id ) ) { 274 276 $text = $r['unflag']; 275 277 $query_args = array( 'action' => 'wporg_bbp_unflag_user', 'user_id' => $user_id ); 278 $class .= ' flagged'; 276 279 } else { 277 280 $text = $r['flag']; … … 282 285 283 286 $url = esc_url( wp_nonce_url( add_query_arg( $query_args, $permalink ), 'toggle-flag_' . $user_id . '_' . $post_id ) ); 284 return sprintf( "<div class='wporg-bbp-user-flag'><a href='%s'>%s</a></div>", 287 return sprintf( "<div class='%s'><a href='%s'>%s</a></div>", 288 $class, 285 289 $url, 286 290 esc_html( $text ) );
Note: See TracChangeset
for help on using the changeset viewer.