WordPress.org

Make WordPress Core

Ticket #44532: 44532.patch

File 44532.patch, 502 bytes (added by JPry, 15 months ago)

Patch for the 4.9 branch

  • 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() { 
    52285228 */
    52295229function wp_is_stream( $path ) {
    52305230        $wrappers = stream_get_wrappers();
     5231        foreach ( $wrappers as &$wrapper ) {
     5232                $wrapper = preg_quote( $wrapper, '!' );
     5233        }
    52315234        $wrappers_re = '(' . join('|', $wrappers) . ')';
    52325235
    52335236        return preg_match( "!^$wrappers_re://!", $path ) === 1;