Opened 6 years ago
Closed 6 years ago
#5159 closed defect (bug) (fixed)
Patch prevents an Undefined Variable error in get_attachment_icon()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | low | Milestone: | 2.5 |
| Component: | General | Version: | 2.3 |
| Severity: | minor | Keywords: | has-patch commit |
| Cc: |
Description
The included patch prevents an Undefined Variable E_NOTICE error from being triggered in get_attachment_icon()
(wp-includes/post-template.php)
On line 453:
$icon = "<img src='$src' title='$post_title' alt='$post_title' $constraint/>";
the variable $constraint is not defined if the icon's image fits within the allowed size.
Attachments (1)
Change History (7)
comment:1
Viper007Bond — 6 years ago
- Keywords has-patch commit added
- Milestone changed from 2.5 to 2.3.1
- Milestone changed from 2.3.1 to 2.4
- Owner changed from anonymous to westi
- Status changed from new to assigned
- Resolution set to fixed
- Status changed from assigned to closed
- Milestone changed from 2.4 to 2.3.1
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for 2.3.1 consideration.
- Priority changed from normal to low
- Severity changed from normal to minor
Replying to westi:
Reopening for 2.3.1 consideration.
My personal opinion is that notice fixes are not severe enough to warrant fixing in a maintenance release.
comment:6
foolswisdom — 6 years ago
- Milestone changed from 2.3.1 to 2.4
- Resolution set to fixed
- Status changed from reopened to closed
Note: See
TracTickets for help on using
tickets.

Patch to wp-includes/post-template.php