[wp-trac] [WordPress Trac] #30115: Defining link="file" in gallery shortcode throws errors
WordPress Trac
noreply at wordpress.org
Sun Oct 26 22:29:22 UTC 2014
#30115: Defining link="file" in gallery shortcode throws errors
--------------------------+-----------------------------
Reporter: Ipstenu | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Gallery | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30115>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list