Changeset 5170 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-author-card.php
- Timestamp:
- 03/27/2017 07:34:25 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-author-card.php
r5001 r5170 66 66 if ( defined( 'WPORG_SUPPORT_FORUMS_BLOGID' ) ) { 67 67 $user = new \WP_User( $author, '', WPORG_SUPPORT_FORUMS_BLOGID ); 68 if ( ! empty( $user->allcaps['bbp_blocked'] ) ) 69 echo '<p>This user is: <strong><span title="User is banned from logging into WordPress.org">banned</span></strong></p>'; 68 $statuses = array(); 69 70 if ( ! empty( $user->allcaps['bbp_blocked'] ) ) { 71 $statuses['banned'] = __( 'User is banned from logging into WordPress.org', 'wporg-plugins' ); 72 } 73 74 if ( (bool) get_user_meta( $user->ID, 'is_bozo', true ) ) { 75 $statuses['flagged'] = __( 'User is flagged in the support forums', 'wporg-plugins' ); 76 } 77 78 if ( $statuses ) { 79 $labels = array(); 80 foreach ( $statuses as $status => $desc ) { 81 $labels[] = sprintf( '<strong><span title="%s">%s</span></strong>', esc_attr( $desc ), $status ); 82 } 83 /* translators: %s: Comma-separated list of negative user status labels */ 84 echo '<p>' . sprintf( __( 'This user is: %s', 'wporg-plugins' ), implode( ', ', $labels ) ) . '</p>'; 85 } 70 86 } 71 87
Note: See TracChangeset
for help on using the changeset viewer.