Plugin Directory

Changeset 1833297


Ignore:
Timestamp:
03/04/2018 10:16:15 PM (8 years ago)
Author:
SultanICQ
Message:

1.1.1

  • BugFix. Small adjustment
Location:
force-protocol-less-links/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • force-protocol-less-links/trunk/index.php

    r1728502 r1833297  
    55Description: Replaces http/https links with its protocol-less version (//).
    66Author: David Garcia
    7 Version: 1.0.0
     7Version: 1.1.1
    88*/
    99
     
    1111class force_protocol_less_links
    1212{
    13     function __construct()
    14     {
     13    function __construct()
     14    {
    1515        add_action('init', array(&$this,'process'));
    16     }
     16    }
    1717    function process()
    1818    {
    19         ob_start(array($this,'change_protocols'));
     19        ob_start(array(&$this,'change_protocols'));
    2020    }
    2121   
    22     function change_protocols(&$buffer)
     22    function change_protocols($buffer)
    2323    {
    24         $buffer = str_replace( array('http://', 'https://') , '//' , $buffer );
     24        $buffer = str_replace( array('http://', 'https://') , '//' , $buffer );
    2525        return $buffer;
    2626    }
    2727}
    2828
    29 $force_protocol_less_links = new force_protocol_less_links();   
    30    
     29$force_protocol_less_links = new force_protocol_less_links();   
     30   
  • force-protocol-less-links/trunk/readme.txt

    r1833294 r1833297  
    2020== Changelog ==
    2121
     22= 1.1.1 =
     23* BugFix. Small adjustment
     24
    2225= 1.1.0 =
    2326* BugFix. ByReference value was passed as a ByValue
Note: See TracChangeset for help on using the changeset viewer.