Ticket #63316: 63316.2.diff
| File 63316.2.diff, 1.0 KB (added by , 14 months ago) |
|---|
-
src/wp-includes/canonical.php
77 77 return; 78 78 } 79 79 80 $redirect = $original;81 $redirect_url = false;82 $redirect_obj = false;83 84 80 // Notice fixing. 85 if ( ! isset( $ redirect['path'] ) ) {86 $ redirect['path'] = '';81 if ( ! isset( $original['host'] ) ) { 82 $original['host'] = ''; 87 83 } 88 if ( ! isset( $ redirect['query'] ) ) {89 $ redirect['query'] = '';84 if ( ! isset( $original['path'] ) ) { 85 $original['path'] = ''; 90 86 } 87 if ( ! isset( $original['query'] ) ) { 88 $original['query'] = ''; 89 } 91 90 91 $redirect = $original; 92 $redirect_url = false; 93 $redirect_obj = false; 94 92 95 /* 93 96 * If the original URL ended with non-breaking spaces, they were almost 94 97 * certainly inserted by accident. Let's remove them, so the reader doesn't … … 616 619 } 617 620 618 621 // Notice prevention after new parse_url( $redirect_url ) calls 622 if ( ! isset( $redirect['host'] ) ) { 623 $redirect['host'] = ''; 624 } 619 625 if ( ! isset( $redirect['path'] ) ) { 620 626 $redirect['path'] = ''; 621 627 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)