Skip to content
Permalink
Browse files

Added Admin can see in author page the user role

  • Loading branch information...
kniebremser committed Jul 10, 2019
1 parent aff96ca commit 1239a1c9ccb633ef185fa88027803f66868642e6
Showing with 23 additions and 2 deletions.
  1. +19 −0 author.php
  2. +4 −2 readme.txt
@@ -80,6 +80,25 @@
<?php echo esc_html( date_i18n( get_option( 'date_format' ), strtotime( $curauth->user_registered ) ) ); ?>
</td>
</tr>
<tr>
<td class="user-info-name">
<?php
esc_html_e( 'User Role', 'comicpress' );
?>
</td>
<td class="user-info-value">
<?php
global $wp_roles;
$user_id = get_the_author_meta( 'ID' );
$user_obj = get_userdata( $user_id );
if ( ! empty( $user_obj->roles ) ) {
foreach ( $user_obj->roles as $user_role ) {
echo esc_html( translate_user_role( $wp_roles->roles[ $user_role ]['name'] ) );
}
}
?>
</td>
</tr>
<tr>
<td class="user-info-name">
<?php esc_html_e( 'Posts #', 'comicpress' ); ?>
@@ -53,8 +53,10 @@ PHP: 5.4
== Changelog ==

= 4.X =
* added: Date format in search.php "display_archive_as_links" and author.phpp "author-archive-date" are now customizable via language file
* added: Symbols for search button (&raquo;) and image area (&lsaquo; and &rsaquo; are now customizable via language file
* added: Admin can see in author page the user role
* added: Date format in author page "author-archive-date" are now customizable via language file
* added: Date format in search page "display_archive_as_links" are now customizable via language file
* added: Symbols for search button (&raquo;) and image area (&lsaquo; and &rsaquo;) are now customizable via language file
* removed Google+ Service was discontinued
* under the hood: Code optimizations according to WPCS

0 comments on commit 1239a1c

Please sign in to comment.
You can’t perform that action at this time.