WordPress.org

Ready to get started?Download WordPress

Forums

Sociable
Issue with sociable and mixed SSL / non-SSL content (3 posts)

  1. Dan Collis-Puro
    Member
    Posted 2 years ago #

    Please see this thread. There is a long standing problem in the sociable plugin where it doesn't properly emit https:// stylesheet and javascript includes under SSL context. I will fix if you tell me you'll accept a patch, dear plugin authors.

    http://wordpress.org/extend/plugins/sociable/

  2. sociable
    Member
    Plugin Contributor

    Posted 2 years ago #

    Hi Dan Collis-Puro,

    We will review this, thanks for help to improve sociable together

    Thanks again!

  3. Dan Collis-Puro
    Member
    Posted 2 years ago #

    Thanks. The issue is pretty clear.

    WP_PLUGIN_URL is not http:// versus https:// aware. The function plugin_dir_url() is. So, change:

    define( 'SOCIABLE_HTTP_PATH' , WP_PLUGIN_URL . '/' . str_replace(basename( __FILE__) , "" , plugin_basename(__FILE__) ) );

    to

    define( 'SOCIABLE_HTTP_PATH' , plugin_dir_url() . str_replace(basename( __FILE__) , "" , plugin_basename(__FILE__) ) );

    and the plugin javascript/css embeds should be https aware and you will no longer have mixed content errors.

    It would appear that the linkedin embed is improperly emitting http:// embeds under https, though. It'd be great to either use schemaless URLs or just always use https:// embeds, as including https:// embeds doesn't generate mixed content errors on an http:// page.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags