Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#30115 closed defect (bug) (invalid)

Defining link="file" in gallery shortcode throws errors

Reported by: ipstenu's profile Ipstenu Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.1
Component: Gallery Keywords:
Focuses: Cc:

Description

To reproduce, put in a gallery manually via the shortcode (like this):

[gallery ids="1,2,3" link="file"]

And you get the following bad output:

Warning: trim() expects parameter 1 to be string, array given in /home/ipstenu/public_html/wp-includes/post-template.php on line 1486

Example

http://test.ipstenu.org/2014/08/26/gallery-test/

If I remove link=file, it all works perfectly. Except no linking to files.

Change History (2)

#2 @johnbillion
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Unable to reproduce this. Please re-open if it's still an issue.

Note: See TracTickets for help on using tickets.