#24058 closed defect (bug) (invalid)
Extra closing div in wordpress gallery
| Reported by: | charliejlryan | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Gallery | Version: | 3.5.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
WordPress 3.5.1 bug - error on line 800 /wp-includes/media.php un-opened "</div>" causes theme problems when using [gallery] shortcode.
Solution: Change lines 798 - 800 from:
$output .= "
<br style='clear: both;' />
</div>\n";
To:
$output .= "
<br style='clear: both;' />";
Change History (2)
#1
follow-up:
↓ 2
@
13 years ago
- Keywords needs-patch removed
- Milestone Awaiting Review
- Resolution → invalid
- Status new → closed
#2
in reply to: ↑ 1
@
13 years ago
Replying to SergeyBiryukov:
There's an opening
<div>tag in line 775:
http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/media.php#L775
Your theme or some plugin is probably hooking into the
gallery_stylefilter in line 776 without adding the opening tag.
Ah, you are correct, thanks Sergey
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
There's an opening
<div>tag in line 775:http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/media.php#L775
Your theme or some plugin is probably hooking into the
gallery_stylefilter in line 776 without adding the opening tag.