WordPress.org

Make WordPress Core

Opened 14 years ago

Closed 13 years ago

#6643 closed defect (bug) (duplicate)

Gallery in post causes widget searches to display corrupted data

Reported by: rodbauer Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Gallery Keywords:
Focuses: Cc:

Description

When a WP 2.5 post contains a [gallery], selecting the Categories, Tags and Calendar date links from the sidebar widgets will cause the search to dump code from the media.php file. The particular code dumped for me was starting at line 388 of media.php

.gallery {
margin: auto;
}
.gallery-item {
float: left;
margin-top: 10px;
text-align: center;
width: 33%; }
.gallery img {
border: 2px solid #cfcfcf;
}
.gallery-caption {
margin-left: 0;
}

This code was followed by all of the image captions, one to a line.

The problem posts contained [gallery] and no other content. I tried this on different installations of WP 2.5 and got same result. Posting photos individually instead of with [gallery] removed problem.

Change History (2)

#1 @ryan
13 years ago

  • Component changed from General to Gallery
  • Owner anonymous deleted

#2 @ryan
13 years ago

  • Milestone 2.7 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

This is probably due to the excerpt bug fixed in #6380. Marking this as a duplicate.

Note: See TracTickets for help on using tickets.