Plugin Directory

Changeset 1094072


Ignore:
Timestamp:
02/19/2015 07:54:50 AM (11 years ago)
Author:
SultanICQ
Message:

1.1.7

  • Fixes with url recognition.
  • Avoid replacing leading double slash links.
Location:
domain-sharding/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • domain-sharding/trunk/domain-sharding.php

    r882347 r1094072  
    55Description: This plugin allows us to change the root domain of images and stylesheets that currently are inside the actual domain and then use a domain sharding structure.
    66Author: David Garcia
    7 Version: 1.1.6
     7Version: 1.1.7
    88*/
    99
     
    343343                }
    344344
     345                if ( substr($url,0,2) == '//' )
     346                {
     347                    // Urls that apply to all protocols (http, https)
     348                    continue;
     349                }
     350
    345351                if ( substr($url,0,1) == '/' )
    346352                {
    347                     $url = "/$url";
    348                 }
     353                    $url = substr($url,1);
     354                }
     355
    349356                if ( substr($url,0,4) != 'http' )
    350357                {
    351                     $url = $home.$url;
    352                 }
     358                    $url = $this->home.'/'.$url;
     359                }
     360
    353361                $url = $this->ds_parse( $url );
    354362
     
    357365                    continue;
    358366                }
    359                 //return '"'.$original . "\n\n" . '"'.$url;
    360367
    361368                $buffer = str_ireplace( '"'.$original, '"'.$url, $buffer );
  • domain-sharding/trunk/readme.txt

    r981187 r1094072  
    33Tags: cdn, wpo, domain sharding, speed, optimization
    44Requires at least: 2.8
    5 Tested up to: 4.0.0
    6 Stable tag: 1.1.6
     5Tested up to: 4.1.1
     6Stable tag: 1.1.7
    77
    88This plugin modify the url of the images to speed up the page browsing.
     
    3737
    3838== Changelog ==
     39
     40= 1.1.7 =
     41* Fixes with url recognition.
     42* Avoid replacing leading double slash links.
    3943
    4044= 1.1.6 =
Note: See TracChangeset for help on using the changeset viewer.