Changeset 43483
- Timestamp:
- 07/17/2018 03:18:12 PM (6 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-includes/functions.php
r43393 r43483 5228 5228 */ 5229 5229 function wp_is_stream( $path ) { 5230 $wrappers = stream_get_wrappers(); 5231 $wrappers_re = '(' . join('|', $wrappers) . ')'; 5230 $wrappers = stream_get_wrappers(); 5231 $wrappers = array_map( 'preg_quote', $wrappers ); 5232 $wrappers_re = '(' . join( '|', $wrappers ) . ')'; 5232 5233 5233 5234 return preg_match( "!^$wrappers_re://!", $path ) === 1;
Note: See TracChangeset
for help on using the changeset viewer.