関数 wp_is_stream()
定義ファイル :/blog/wp-includes/functions.php 22
wp_is_stream()
1 2 3 4 5 6 7 8 9 10 11 12 | /** * Test if a given path is a stream URL * * @param string $path The resource path or URL. * @return bool True if the path is a stream URL. */ function wp_is_stream( $path ) { $wrappers = stream_get_wrappers(); $wrappers_re = '(' . join('|', $wrappers) . ')'; return preg_match( "!^$wrappers_re://!", $path ) === 1; } |