mirror of
https://ghproxy.net/https://github.com/fairpm/fair-plugin.git
synced 2025-09-04 11:38:19 +08:00
including message for user profiles on multisite
Signed-off-by: Norcross <andrew.norcross@gmail.com>
This commit is contained in:
parent
18e515f4bf
commit
0bb48e6fa1
1 changed files with 11 additions and 0 deletions
|
@ -84,6 +84,17 @@ function add_avatar_upload_field( $description, $profile_user ) {
|
|||
return $description;
|
||||
}
|
||||
|
||||
// Display a message regarding network settings on a multisite.
|
||||
if ( defined( 'MULTISITE' ) && false !== MULTISITE && ! is_network_admin() ) {
|
||||
echo '<span class="fair-avatar-desc">';
|
||||
echo sprintf(
|
||||
esc_html__( 'Avatars are managed at the network level. %s to make changes.', 'fair' ),
|
||||
'<a href="' . network_admin_url( 'profile.php' ) . '">Click here</a>',
|
||||
);
|
||||
echo '</span>';
|
||||
return;
|
||||
}
|
||||
|
||||
$avatar_id = get_user_meta( $profile_user->ID, 'fair_avatar_id', true );
|
||||
|
||||
// Set a class based on an avatar being there right now.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue