Commit 3d5d0ec
authored
Update functions.php to fix deprecated warnings
Fixed two pieces of code that were generating deprecated warnings:
-- Backtrace from warning 'strpos(): Passing null to parameter WordPress#1 ($haystack) of type string is deprecated' at /wp-includes/functions.php 7329:
this was the code causing the error: $scheme_separator = strpos( $path, '://' );
-- Backtrace from warning 'str_replace(): Passing null to parameter WordPress#3 ($subject) of type array|string is deprecated' at /wp-includes/functions.php 2189:
this was the code causing the error: $path = str_replace( '\\', '/', $path );1 parent 59f3fef commit 3d5d0ec
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2192 | 2192 | | |
2193 | 2193 | | |
2194 | 2194 | | |
2195 | | - | |
| 2195 | + | |
2196 | 2196 | | |
2197 | 2197 | | |
2198 | 2198 | | |
| |||
7357 | 7357 | | |
7358 | 7358 | | |
7359 | 7359 | | |
7360 | | - | |
| 7360 | + | |
7361 | 7361 | | |
7362 | 7362 | | |
7363 | 7363 | | |
| |||
0 commit comments