#6666 closed defect (bug) (duplicate)
wp_get_object_terms throws a notice in WP_DEBUG mode
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.5 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
Steps to reproduce:
- Define the constant WP_DEBUG in wp_config.php
- Browse to the blog homepage of a fairly vanilla WP2.5 install
- Check the PHP error log, and you should see:
Notice: Undefined index: path in /Users/simon/Projects/WordPress-2.5/site/wp-includes/canonical.php:174
I suggest that $t->args is tested with isset at the beginning of the IF statement (see attached patch, test_for_args.patch). Someone with greater knowledge of that functionality might be able to suggest replacing the is_array test with isset...
Attachments (1)
Change History (6)
#2
@
17 years ago
- Milestone changed from 2.5.1 to 2.6
- Owner changed from anonymous to westi
- Status changed from new to assigned
- Version set to 2.5
2.6 is a more appropriate target for these fixes.
#3
@
17 years ago
Note: Title and patch is duplicate of ticket:6960. Look only at the description for this "E_NOTICE" bug.
Note: See
TracTickets for help on using
tickets.
Patched taxonomy.php to test for $t-args in an IF statement