#37292 (Check if $category is object before outputting) – WordPress Trac (original) (raw)
#37292 closed defect (bug) (wontfix)
| Reported by: | |
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | Taxonomy | Keywords: | |
| Focuses: | Cc: |
Description
After auto upgrade I got a Notice: Trying to get property of non-object in /wp-includes/category-template.php on line 238
with WP version 4.2.9
Upgrade was from 4.2.7 as I can remember.
Attachments (1)
Change History (4)
#1
@swissspidy
10 years ago
Does this still occur using the latest version of WordPress (4.5.3) and 4.6 Beta 1?
#2
@michalzuber
10 years ago
Tried to migrate the database to use the same data with the new code (trunk) and it worked.
But it would be great to check before using the object. The same might happen and this prevents it. Surely this is only Notice and errors on production should be turned off so not a big issue.
#3
@SergeyBiryukov
9 years ago
- Milestone Awaiting Review deleted
- Resolution set to wontfix
- Status changed from new to closed
Note: SeeTracTickets for help on using tickets.