packages/redirect/src/class-redirect.php 1 location
|
@@ 28-33 (lines=6) @@
|
| 25 |
|
* @param string $url the full URL. |
| 26 |
|
* @return string $url without the guff |
| 27 |
|
*/ |
| 28 |
|
private static function build_raw_urls( $url ) { |
| 29 |
|
$strip_http = '/.*?:\/\//i'; |
| 30 |
|
$url = preg_replace( $strip_http, '', $url ); |
| 31 |
|
$url = str_replace( '/', '::', $url ); |
| 32 |
|
return $url; |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
/** |
| 36 |
|
* Builds and returns an URL using the jetpack.com/redirect service |
class.jetpack.php 1 location
|
@@ 6943-6948 (lines=6) @@
|
| 6940 |
|
* @param string | url |
| 6941 |
|
* @return string | url without the guff |
| 6942 |
|
*/ |
| 6943 |
|
public static function build_raw_urls( $url ) { |
| 6944 |
|
$strip_http = '/.*?:\/\//i'; |
| 6945 |
|
$url = preg_replace( $strip_http, '', $url ); |
| 6946 |
|
$url = str_replace( '/', '::', $url ); |
| 6947 |
|
return $url; |
| 6948 |
|
} |
| 6949 |
|
|
| 6950 |
|
/** |
| 6951 |
|
* Stores and prints out domains to prefetch for page speed optimization. |
packages/soft-wordpress-test/src/class-soft-wordpress.php 1 location
|
@@ 28-33 (lines=6) @@
|
| 25 |
|
* @param string $url the full URL. |
| 26 |
|
* @return string $url without the guff |
| 27 |
|
*/ |
| 28 |
|
private static function build_raw_urls( $url ) { |
| 29 |
|
$strip_http = '/.*?:\/\//i'; |
| 30 |
|
$url = preg_replace( $strip_http, '', $url ); |
| 31 |
|
$url = str_replace( '/', '::', $url ); |
| 32 |
|
return $url; |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
/** |
| 36 |
|
* Builds and returns an URL using the jetpack.com/redirect service |