Users: Only show the profile picture if 'Show Avatars' option in Discussion Settings is enabled.

Props ocean90.
See #32286.

git-svn-id: https://develop.svn.wordpress.org/trunk@35613 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-11-11 19:40:44 +00:00
parent fbddde19eb
commit 242709ce40

View File

@ -437,6 +437,7 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c
<p class="description"><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></p></td>
</tr>
<?php if ( get_option( 'show_avatars' ) ) : ?>
<tr class="user-profile-picture">
<th><?php _e( 'Profile Picture' ); ?></th>
<td>
@ -462,6 +463,7 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c
?></p>
</td>
</tr>
<?php endif; ?>
<?php
/**