WordPress.org

Plugin Directory

Changeset 1602215


Ignore:
Timestamp:
02/23/17 16:02:55 (7 months ago)
Author:
jartes
Message:

Adding https support (thanks to timanrebel)

Location:
wordpress-varnish-as-a-service/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wordpress-varnish-as-a-service/trunk/readme.txt

    r1595700 r1602215  
    44Requires at least: 2.5 
    55Tested up to: 4.7.2 
    6 Stable tag: 1.2.3 
     6Stable tag: 1.2.4 
    77 
    88Clear your Varnish cache when new, edited or deleted content happens. 
     
    2727 
    2828== Changelog == 
     29 
     30= 1.2.4 = 
     31 * https support (props timanrebel) 
    2932 
    3033= 1.2.3 = 
  • wordpress-varnish-as-a-service/trunk/wordpress-varnish-as-a-service.php

    r1595700 r1602215  
    22/* 
    33Plugin Name: WordPress Varnish as a Service 
    4 Version: 1.2.3 
     4Version: 1.2.4 
    55Author: Joan Artés 
    66Author URI: http://joanartes.com/ 
     
    349349            $wpv_use_version = $array_wpv_use_version[$i]; 
    350350            $wpv_wpurl = get_bloginfo('wpurl'); 
    351             $wpv_replace_wpurl = '/^http:\/\/([^\/]+)(.*)/i'; 
     351            $wpv_replace_wpurl = '/^https?:\/\/([^\/]+)(.*)/i'; 
    352352            $wpv_host = preg_replace($wpv_replace_wpurl, "$1", $wpv_wpurl); 
    353353            $wpv_blogaddr = preg_replace($wpv_replace_wpurl, "$2", $wpv_wpurl); 
     
    417417        } 
    418418        $wpv_wpurl = get_bloginfo("url"); 
    419         $wpv_replace_wpurl = '/^http:\/\/([^\/]+)(.*)/i'; 
     419        $wpv_replace_wpurl = '/^https?:\/\/([^\/]+)(.*)/i'; 
    420420        $wpv_host = preg_replace($wpv_replace_wpurl, "$1", $wpv_wpurl); 
    421421        $wpv_url = $wpv_blogaddr."/"; 
Note: See TracChangeset for help on using the changeset viewer.