WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Dave's WordPress Live Search] Will not work with SSL in WPadmin

[Plugin: Dave's WordPress Live Search] Will not work with SSL in WPadmin

Viewing 2 replies - 1 through 2 (of 2 total)
  • lacohido
    Member

    @lacohido

    I’m not an expert, but this is what I did… I don’t know if this is a security issue. Maybe the developer can confirm this:

    I changed line 106 on DavesWordPressLiveSearch.php:
    ajaxURL' => admin_url('admin-ajax.php'),
    to
    ajaxURL' => admin_url('admin-ajax.php', 'http' ),

    Also, see admin_url function reference

    Plugin Author Dave Ross
    Participant

    @csixty4

    The problem with forcing it to use http like that is that some people have the public side of their site set up to use https. This could be for security, or it could be part of a SPDY integration. In that case, the public-facing page itself is loading with HTTPS, and if you you load the AJAX content with HTTP, that’s going to cause a mixed content security warning.

    The way I’m doing it is the preferred way to call admin_url, according to the Codex. I’ll ask around and see if any of the core devs have any insight.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Dave's WordPress Live Search] Will not work with SSL in WPadmin’ is closed to new replies.