jaredatch / EA-Share-Count

A lean plugin that leverages SharedCount.com API to quickly retrieve, cache, and display various social sharing counts.
84 stars 13 forks source link

HTTPS for all sharing links #90

Closed billerickson closed 6 years ago

billerickson commented 6 years ago

A client noticed that some of our sharing links are http (see here). Everything should be https.

Here's what I'm using in our core functionality plugin to fix this until the new version of EASC is out.

/**
 * HTTPS for all sharing links
 *
 */
function ea_https_for_sharing_links( $link ) {
    $link['link'] = str_replace( 'http://', 'https://', $link['link'] );
    return $link;
}
add_filter( 'ea_share_count_link', 'ea_https_for_sharing_links' );
jaredatch commented 6 years ago

This is already fixed in the refactor, had this exact issue with the client I switched to SSL lol