[wp-trac] [WordPress Trac] #62350: Depricated warning
WordPress Trac
noreply at wordpress.org
Thu Nov 7 13:03:20 UTC 2024
#62350: Depricated warning
--------------------------+------------------------------
Reporter: martenw | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by martenw):
Hi yogeshbhutkar, thanks for your reaction.
I'm not able to give you the reason for the deprications. I'm using the
Gutenbiz theme and WP 6.7 RC3, but the deprecation also occurs in previous
versions. Maybe that is the cause.
I modified the wp-includes/functions.php file to avoid the deprecations as
follows.
line 2189:
if ( $path ) {
if ( wp_is_stream( $path ) ) {
list( $wrapper, $path ) = explode( '://', $path, 2 );
$wrapper .= '://';
}
// Standardize all paths to use '/'.
$path = str_replace( '\\', '/', $path );
// Replace multiple slashes down to a singular, allowing for
network shares having two slashes.
$path = preg_replace( '|(?<=.)/+|', '/', $path );
// Windows paths should uppercase the drive letter.
if ( ':' === substr( $path, 1, 1 ) ) {
$path = ucfirst( $path );
}
}
line 7300: $scheme_separator = $path ? strpos( $path, '://' ) : false;
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62350#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list