[wp-trac] [WordPress Trac] #55753: parse_url at url_to_postid
WordPress Trac
noreply at wordpress.org
Tue May 17 22:10:20 UTC 2022
#55753: parse_url at url_to_postid
--------------------------+-----------------------------
Reporter: lagios.di | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
line 500 at wp 5.9.3
example input:
url = "www.example.com/article"
$url_host = str_replace( 'www.', '', parse_url( $url, PHP_URL_HOST )
);
make warning:
b>Deprecated</b>: str_replace(): Passing null to parameter #3 ($subject)
of type array|string is deprecated in
<b>/var/www/vhosts/example.com/httpdocs/wp-includes/rewrite.php</b> on
line <b>500</b><br />
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55753>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list