We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c80b673 commit a0dd853Copy full SHA for a0dd853
src/wp-includes/rewrite.php
@@ -504,14 +504,14 @@ function url_to_postid( $url ) {
504
if ( is_string( $url_host ) ) {
505
$url_host = str_replace( 'www.', '', $url_host );
506
} else {
507
- return 0;
+ $url_host = '';
508
}
509
510
$home_url_host = parse_url( home_url(), PHP_URL_HOST );
511
if ( is_string( $home_url_host ) ) {
512
$home_url_host = str_replace( 'www.', '', $home_url_host );
513
514
+ $home_url_host = '';
515
516
517
// Bail early if the URL does not belong to this site.
0 commit comments