Support » Plugin: WordPress HTTPS (SSL) » [Plugin: WordPress HTTPS (SSL)] admin_url in Filters.php returns too much https urls

  • There are two problems with the function admin_url in Filters.php:

    a) it returns a https-url even if the scheme is set to ‘http’
    b) it alwayls returns a https-url if the settings say ‘Force SSL Administration’. This breaks frontend plugins like wp search suggest, if they are used on a ssl enabled site and the frontend page gets delivered via http.

    To solve this issue i broadened the if-statement in admin_url.
    Replace in Filters.php the line
    if ( ( $scheme == ‘https’ || $this->getPlugin()->getSetting(‘ssl_admin’) || ( ( is_admin() || $GLOBALS[‘pagenow’] == ‘wp-login.php’ ) && $this->getPlugin()->isSsl() ) ) && ( ! is_multisite() || ( is_multisite() && parse_url($url, PHP_URL_HOST) == $this->getPlugin()->getHttpsUrl()->getHost() ) ) ) {

    with this line
    if ( $scheme != ‘http’ && ( ( $scheme == ‘https’ || ( is_admin() && $this->getPlugin()->getSetting(‘ssl_admin’) ) || ( ( is_admin() || $GLOBALS[‘pagenow’] == ‘wp-login.php’ ) && $this->getPlugin()->isSsl() ) ) && ( ! is_multisite() || ( is_multisite() && parse_url($url, PHP_URL_HOST) == $this->getPlugin()->getHttpsUrl()->getHost() ) ) ) ) {

    With kind regards
    hsz_36

    http://wordpress.org/extend/plugins/wordpress-https/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WordPress HTTPS (SSL)] admin_url in Filters.php returns too much https urls’ is closed to new replies.