updated plugin Simple Local Avatars
version 2.7.10
This commit is contained in:
@ -276,7 +276,14 @@ class Simple_Local_Avatars {
|
||||
|
||||
// Local only mode
|
||||
if ( ! $simple_local_avatar_url ) {
|
||||
$args['url'] = $this->get_default_avatar_url( $args['size'] );
|
||||
$default_url = $this->get_default_avatar_url( $args['size'] );
|
||||
$avatar_default = get_option( 'avatar_default' );
|
||||
|
||||
if ( ! empty( $this->options['only'] ) ) {
|
||||
$args['url'] = $default_url;
|
||||
} elseif ( 'simple_local_avatar' === $avatar_default ) {
|
||||
$args['default'] = $default_url;
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! empty( $args['url'] ) ) {
|
||||
@ -1470,6 +1477,7 @@ class Simple_Local_Avatars {
|
||||
<input type="hidden" name="simple-local-avatar-file-id" id="simple-local-avatar-file-id" value="<?php echo ! empty( $default_avatar_file_id ) ? esc_attr( $default_avatar_file_id ) : ''; ?>"/>
|
||||
<input type="hidden" name="simple-local-avatar-file-url" id="simple-local-avatar-file-url" value="<?php echo ! empty( $default_avatar_file_url ) ? esc_url( $default_avatar_file_url ) : ''; ?>"/>
|
||||
<input type="button" name="simple-local-avatar" id="simple-local-avatar-default" class="button-secondary" value="<?php esc_attr_e( 'Choose Default Avatar', 'simple-local-avatar' ); ?>"/>
|
||||
<p class="description" style="margin-left: 23px;"><?php esc_html_e( 'Note that this avatar needs to be publicly available or a broken image will be shown.', 'simple-local-avatar' ); ?></p>
|
||||
<?php
|
||||
$defaults['simple_local_avatar'] = ob_get_clean();
|
||||
|
||||
|
Reference in New Issue
Block a user