Opened 19 years ago
Closed 19 years ago
#5159 closed defect (bug) (fixed)
Patch prevents an Undefined Variable error in get_attachment_icon()
| Reported by: | richcon | Owned by: | westi |
|---|---|---|---|
| Priority: | low | Milestone: | 2.5 |
| Component: | General | Version: | 2.3 |
| Severity: | minor | Keywords: | has-patch commit |
| Cc: | Focuses: |
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)
#4
follow-up:
↓ 5
@
19 years ago
- Milestone 2.4 → 2.3.1
- Resolution fixed
- Status closed → reopened
Reopening for 2.3.1 consideration.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch to wp-includes/post-template.php