Hello,
I’d like to ask to update the plugin adding a letter s
within the https://
:
// Send back the completed tag
return '<img src="https://www.gravatar.com/avatar/' . md5( trim( strtolower( $email ) ) ) . '.jpg?s=' . $size . $rating . $default . '" width="' . $size . '" height="' . $size . '"' . $alt . $title . $align . $style . $class . $id . $border . ' />';
}
Great plugin. That is why I use it! ?? ?? ??
Kind regards,
]]>Currently the plugin is hard coded to use https://
causing mixed content warnings on pages that use https://
.
Could you possibly update the plugin to use is_ssl()
to detect the current page scheme? I have a patch if you need it. It includes adding $scheme
to the list of supported HTML attributes:
// Supported HTML attributes for the IMG tag
$alt = $alt ? ' alt="' . esc_attr( $alt ) . '"' : '';
$title = $title ? ' title="' . esc_attr( $title ) . '"' : '';
$align = $align ? ' align="' . esc_attr( $align ) . '"' : '';
$style = $style ? ' style="' . esc_attr( $style ) . '"' : '';
$class = $class ? ' class="' . esc_attr( $class ) . '"' : '';
$id = $id ? ' id="' . esc_attr( $id ) . '"' : '';
$border = $border ? ' border="' . esc_attr( $border ) . '"' : '';
$scheme = is_ssl() ? 'https://' : 'https://';
And then making sure to replace the https://
in the img tag with $scheme