WordPress.org

Ready to get started?Download WordPress

Forums

MailChimp List Subscribe Form
Improved SSL Support (plugins_url() versus WP_PLUGIN_URL) (1 post)

  1. John LeBlanc
    Member
    Posted 3 years ago #

    Aloha mc_jesse and all!

    I propose that you use plugins_url() in place of WP_PLUGIN_URL within mailchimpSF_where_am_i().

    Why? WP_PLUGIN_URL does not take into account whether the request uses SSL and always returns the Non-SSL URL. This triggers "Connection Partially Encrypted" browser warnings when a page is requested over https while the mailchimp.js is served over plain http.

    More on plugins_url() Introduced in 2.6:
    http://codex.wordpress.org/Function_Reference/plugins_url

    Related functions:
    http://codex.wordpress.org/Determining_Plugin_and_Content_Directories

    Mahalo!
    John

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags