[wp-trac] [WordPress Trac] #6667: redirect_canonical throws Notices
when WP_DEBUG is set
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 10 18:30:46 GMT 2008
#6667: redirect_canonical throws Notices when WP_DEBUG is set
---------------------------+------------------------------------------------
Reporter: simonwheatley | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5.1
Component: General | Version: 2.5
Severity: normal | Keywords: has-patch needs-testing
---------------------------+------------------------------------------------
Steps to reproduce:
1. Define the constant WP_DEBUG in wp_config.php
2. Browse to the blog homepage of a fairly vanilla WP2.5 install
3. Check the PHP error log, and you should see (or similar):
Notice:Undefined index: path in /Users/simon/Projects/WordPress-2.5/site
/wp-includes/canonical.php:174
and
Notice:Undefined index: port in /Users/simon/Projects/WordPress-2.5/site
/wp-includes/canonical.php:181
The attached patch, canonical_test_for_vars.patch, amends the two IF
statements so that they test the relevant vars with isset before testing
if they are true.
--
Ticket URL: <http://trac.wordpress.org/ticket/6667>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list