Opened 18 years ago
Closed 18 years ago
#5159 closed defect (bug) (fixed)
Patch prevents an Undefined Variable error in get_attachment_icon()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.5 | Priority: | low |
| Severity: | minor | Version: | 2.3 |
| Component: | General | Keywords: | has-patch commit |
| Focuses: | 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)
#2
@
18 years ago
- Milestone changed from 2.3.1 to 2.4
- Owner changed from anonymous to westi
- Status changed from new to assigned
#4
follow-up:
↓ 5
@
18 years ago
- Milestone changed from 2.4 to 2.3.1
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for 2.3.1 consideration.
Note: See
TracTickets for help on using
tickets.
Patch to wp-includes/post-template.php