Ticket #44532: 44532.patch
| File 44532.patch, 502 bytes (added by , 8 years ago) |
|---|
-
src/wp-includes/functions.php
diff --git src/wp-includes/functions.php src/wp-includes/functions.php index 5802a34146..9308191445 100644
function _device_can_upload() { 5228 5228 */ 5229 5229 function wp_is_stream( $path ) { 5230 5230 $wrappers = stream_get_wrappers(); 5231 foreach ( $wrappers as &$wrapper ) { 5232 $wrapper = preg_quote( $wrapper, '!' ); 5233 } 5231 5234 $wrappers_re = '(' . join('|', $wrappers) . ')'; 5232 5235 5233 5236 return preg_match( "!^$wrappers_re://!", $path ) === 1;