WordPress.org

Make WordPress Core

Ticket #44744: 44744.diff

File 44744.diff, 430 bytes (added by rellect, 18 months ago)
  • wp-includes/canonical.php

    diff --git wp-includes/canonical.php wp-includes/canonical.php
    index ad219c2711..44ad1740e6 100644
    function redirect_canonical( $requested_url = null, $do_redirect = true ) { 
    535535                }
    536536        }
    537537
    538         if ( ! $redirect_url || $redirect_url == $requested_url ) {
     538        if ( ! $redirect_url || urldecode($redirect_url) === urldecode($requested_url) ) {
    539539                return;
    540540        }
    541541