[wp-trac] [WordPress Trac] #6977: Undefined indexes for $redirect
and $original in redirect_canonical
WordPress Trac
wp-trac at lists.automattic.com
Thu May 15 18:12:28 GMT 2008
#6977: Undefined indexes for $redirect and $original in redirect_canonical
---------------------+------------------------------------------------------
Reporter: minddog | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.6
Component: General | Version: 2.5.1
Severity: normal | Keywords:
---------------------+------------------------------------------------------
To reproduce do a fresh install of wordpress and turn on debug mode.
Visit the homepage and you'll see the notices.
Notice: Undefined index: port in <removed>/wp-includes/canonical.php on
line 181
Notice: Undefined index: query in <removed>/wp-includes/canonical.php on
line 181
Notice: Undefined index: port in <removed>/wp-includes/canonical.php on
line 181
Notice: Undefined index: query in <removed>/wp-includes/canonical.php on
line 181
To fix this issue, I think we can ignore any extraneous initialization
code and suppress the notices with @, as the operation array() !== array()
is not affected undefined indexes internally.
Please see my patch for fixing this issue, thanks.
--
Ticket URL: <http://trac.wordpress.org/ticket/6977>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list