WordPress.org

Forums

Simple Local Avatars
Relative path'd avatars when on SSL (1 post)

  1. Henry Wright
    Member
    Posted 1 year ago #

    For some unknown reason, the avatar URL returned is always http: for me.

    I'm having to filter simple_local_avatar to remove http: because when a page is served over SSL, I get the dreaded insecure items on page warning message. See below which may be of help to some of you.

    function ssl_simple_local_avatar( $avatar ) {
        $avatar = str_replace( 'http:', '', $avatar );
        return $avatar;
    }
    add_filter( 'simple_local_avatar', 'ssl_simple_local_avatar' );

    https://wordpress.org/plugins/simple-local-avatars/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Local Avatars
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.