関数 wp_make_link_relative()
2014/12/11
関数 wp_make_link_relative()
定義ファイル :/blog/wp-includes/formatting.php 7
1 2 3 | function wp_make_link_relative( $link ) { return preg_replace( '|https?://[^/]+(/.*)|i', '$1', $link ); } |
WEBシステム SI屋の代表のブログです。
2014/12/11
1 2 3 | function wp_make_link_relative( $link ) { return preg_replace( '|https?://[^/]+(/.*)|i', '$1', $link ); } |