Opened 10 years ago
Closed 10 years ago
#30115 closed defect (bug) (invalid)
Defining link="file" in gallery shortcode throws errors
Reported by: |
|
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)
Note: See
TracTickets for help on using
tickets.
I am unable to reproduce this.
Example on trunk: http://jmortensen.bluehoststaff.com/beta4/src/?p=1
Example of 4.0: http://jmortensen.bluehoststaff.com/wordpress/110/
Screenshot of shortcode usage: http://jmortensen.bluehoststaff.com/screenshot102614180846.jpg