WordPress.org

Make WordPress Core

Ticket #35031: 35031.2.diff

File 35031.2.diff, 464 bytes (added by pento, 3 years ago)
  • src/wp-includes/query.php

     
    50095009                                        $link = user_trailingslashit( trailingslashit( $link ) . $endpoint[1] );
    50105010                                }
    50115011                        }
     5012                } else {
     5013                        // If it's not an endpoint or a 404, there's something else associated with this URL. Let's not redirect anywhere.
     5014                        return;
    50125015                }
    50135016
    50145017                /**