Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/wp-includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2192,7 +2192,7 @@
}

// Standardize all paths to use '/'.
$path = str_replace( '\\', '/', $path );
$path = str_replace('\\', '/', $path ?? '');

Check failure on line 2195 in src/wp-includes/functions.php

View workflow job for this annotation

GitHub Actions / PHP coding standards / Run coding standards checks

Expected 1 spaces after opening parenthesis; 0 found

Check failure on line 2195 in src/wp-includes/functions.php

View workflow job for this annotation

GitHub Actions / PHP coding standards / Run coding standards checks

Expected 1 spaces before closing parenthesis; 0 found

// Replace multiple slashes down to a singular, allowing for network shares having two slashes.
$path = preg_replace( '|(?<=.)/+|', '/', $path );
Expand Down Expand Up @@ -7357,7 +7357,7 @@
* @return bool True if the path is a stream URL.
*/
function wp_is_stream( $path ) {
$scheme_separator = strpos( $path, '://' );
$scheme_separator = strpos($path ?? '', '://');

Check failure on line 7360 in src/wp-includes/functions.php

View workflow job for this annotation

GitHub Actions / PHP coding standards / Run coding standards checks

Expected 1 spaces after opening parenthesis; 0 found

Check failure on line 7360 in src/wp-includes/functions.php

View workflow job for this annotation

GitHub Actions / PHP coding standards / Run coding standards checks

Expected 1 spaces before closing parenthesis; 0 found

if ( false === $scheme_separator ) {
// $path isn't a stream.
Expand Down
Loading