Changeset 1094072
- Timestamp:
- 02/19/2015 07:54:50 AM (11 years ago)
- Location:
- domain-sharding/trunk
- Files:
-
- 2 edited
-
domain-sharding.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
domain-sharding/trunk/domain-sharding.php
r882347 r1094072 5 5 Description: 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. 6 6 Author: David Garcia 7 Version: 1.1. 67 Version: 1.1.7 8 8 */ 9 9 … … 343 343 } 344 344 345 if ( substr($url,0,2) == '//' ) 346 { 347 // Urls that apply to all protocols (http, https) 348 continue; 349 } 350 345 351 if ( substr($url,0,1) == '/' ) 346 352 { 347 $url = "/$url"; 348 } 353 $url = substr($url,1); 354 } 355 349 356 if ( substr($url,0,4) != 'http' ) 350 357 { 351 $url = $home.$url; 352 } 358 $url = $this->home.'/'.$url; 359 } 360 353 361 $url = $this->ds_parse( $url ); 354 362 … … 357 365 continue; 358 366 } 359 //return '"'.$original . "\n\n" . '"'.$url;360 367 361 368 $buffer = str_ireplace( '"'.$original, '"'.$url, $buffer ); -
domain-sharding/trunk/readme.txt
r981187 r1094072 3 3 Tags: cdn, wpo, domain sharding, speed, optimization 4 4 Requires at least: 2.8 5 Tested up to: 4. 0.06 Stable tag: 1.1. 65 Tested up to: 4.1.1 6 Stable tag: 1.1.7 7 7 8 8 This plugin modify the url of the images to speed up the page browsing. … … 37 37 38 38 == Changelog == 39 40 = 1.1.7 = 41 * Fixes with url recognition. 42 * Avoid replacing leading double slash links. 39 43 40 44 = 1.1.6 =
Note: See TracChangeset
for help on using the changeset viewer.