Skip to content
Open
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
efc4882
Fix Uncaught exception Error with message 'Call to undefined function…
deepakrohillas May 15, 2024
8332cbf
Merge pull request #1 from deepakrohillas/deepakrohillas-patch-hello_…
deepakrohillas May 15, 2024
9c32016
Fix Hello Dolly : Uncaught exception 'Error' with message ' suggested…
deepakrohillas May 16, 2024
e0bf93f
Merge branch 'WordPress:trunk' into trunk
deepakrohillas May 23, 2024
b542011
PHP message: PHP Fatal error: Uncaught Error: Undefined constant "ABS…
deepakrohillas May 23, 2024
e9bfe06
remove changes
deepakrohillas May 23, 2024
ca3bcf4
Merge branch 'WordPress:trunk' into trunk
deepakrohillas May 24, 2024
0bb77bc
Update hello.php
deepakrohillas May 27, 2024
e66ea99
Merge branch 'WordPress:trunk' into trunk
deepakrohillas May 29, 2024
f296585
Merge branch 'WordPress:trunk' into trunk
deepakrohillas Jun 4, 2024
1cf6ece
Merge branch 'WordPress:trunk' into trunk
deepakrohillas Jun 4, 2024
5c8b971
Merge branch 'WordPress:trunk' into trunk
deepakrohillas Jun 15, 2024
2c753db
Merge branch 'WordPress:trunk' into trunk
deepakrohillas Jun 22, 2024
ca7d15b
Merge branch 'WordPress:trunk' into trunk
deepakrohillas Jun 23, 2024
638adac
Merge branch 'WordPress:trunk' into trunk
deepakrohillas Jun 30, 2024
6682237
Merge branch 'WordPress:trunk' into trunk
deepakrohillas Jul 14, 2024
8f20e8c
Update hello.php
deepakrohillas Jul 19, 2024
945ea5f
Merge branch 'WordPress:trunk' into trunk
deepakrohillas Jul 23, 2024
db3b596
Merge branch 'WordPress:trunk' into trunk
deepakrohillas Jul 24, 2024
dfb0ec6
Update hello.php
deepakrohillas Jul 27, 2024
b62e5ae
Update hello.php
deepakrohillas Jul 27, 2024
da22274
Merge branch 'WordPress:trunk' into trunk
deepakrohillas Aug 19, 2024
131b76f
Merge branch 'WordPress:trunk' into trunk
deepakrohillas Aug 22, 2024
610da0b
Merge branch 'WordPress:trunk' into trunk
deepakrohillas Sep 5, 2024
6797f93
Merge branch 'WordPress:trunk' into trunk
deepakrohillas Sep 7, 2024
ff34eb9
PHP warning Fixex in wp-includes - canonical file
deepakrohillas Sep 8, 2024
932079c
PHP warning Fixex in wp-includes - canonical file
deepakrohillas Sep 8, 2024
ac4e9c9
PHP warning Fixex in wp-includes - canonical file
deepakrohillas Sep 8, 2024
9d44064
PHP warning Fixex in wp-includes - canonical file
deepakrohillas Sep 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
PHP warning Fixex in wp-includes - canonical file
  • Loading branch information
deepakrohillas committed Sep 8, 2024
commit ff34eb9108e7486366ac0f1351a9b688f7a9989d
4 changes: 3 additions & 1 deletion src/wp-includes/canonical.php
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,8 @@ function redirect_canonical( $requested_url = null, $do_redirect = true ) {
} else {
unset( $redirect['port'] );
}


$redirect['path'] = isset( $redirect['path'] ) ? $redirect['path'] : '';
// Trailing /index.php.
$redirect['path'] = preg_replace( '|/' . preg_quote( $wp_rewrite->index, '|' ) . '/*?$|', '/', $redirect['path'] );

Expand Down Expand Up @@ -728,6 +729,7 @@ function redirect_canonical( $requested_url = null, $do_redirect = true ) {
$redirect['host'] = $original['host'];
}

$original['path'] = isset( $original['path' ] ) ? $original['path'] : '';
$compare_original = array( $original['host'], $original['path'] );

if ( ! empty( $original['port'] ) ) {
Expand Down