Plugin Directory

Changeset 1727453


Ignore:
Timestamp:
09/09/2017 07:28:44 PM (9 years ago)
Author:
factmaven
Message:

Update to v2.1.1

Location:
remove-http
Files:
5 added
3 edited

Legend:

Unmodified
Added
Removed
  • remove-http/trunk/readme.txt

    r1633859 r1727453  
    44Tags: cloudflare, http, https, insecure content, mixed content, mixed content warning, partially encrypted, protocol relative url, protocol rewriting, relative protocol, remove http, remove https, rewrite, ssl, url
    55Requires at least: 3.0.0
    6 Tested up to: 4.7.3
    7 Stable tag: 2.1.0
     6Tested up to: 4.8.1
     7Requires PHP: 5.2
     8Stable tag: 2.1.1
    89License: GPLv3
    910License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5152
    5253== Changelog ==
     54= 2.1.1 =
     55
     56*2017-09-09*
     57
     58* Added support for relative domain paths
     59
    5360= 2.1.0 =
    5461
  • remove-http/trunk/remove-http.php

    r1633859 r1727453  
    44 * Plugin URI: https://wordpress.org/plugins/remove-http/
    55 * Description: Removes both HTTP and HTTPS protocols from links.
    6  * Version: 2.1.0
     6 * Version: 2.1.1
    77 * Author: Fact Maven
    88 * Author URI: https://www.factmaven.com/
     
    9595            if ( is_null( $content_type ) || substr( $content_type, 0, 9 ) === 'text/html' ) {
    9696                # Get domain without protocol               
    97                 $website = preg_replace( '/https?:\/\//', '', home_url() );
     97                $website = preg_replace( '/^https?:\/\//', '', home_url() );
     98                $website = preg_replace( '/\/.*$/', '', $website );
    9899                # Ignore input tags link tags with 'rel=canonical'
    99100                $exceptions = '<(?:input\b[^<]*\bvalue=[\"\']https?:\/\/|link\b[^<]*?\brel=[\'\"]canonical[\'\"][^<]*?>)(*SKIP)(*F)';
  • remove-http/trunk/uninstall.php

    r1522185 r1727453  
    33 * Runs automatically when the plugin is deleted.
    44 *
    5  * @author Fact Maven Corp.
     5 * @author Fact Maven
    66 * @link https://wordpress.org/plugins/remove-http/
    77 */
Note: See TracChangeset for help on using the changeset viewer.