"Invisible" CR LF giving ERROR: Invalid mla_gallery tax_query
-
Hi!
I got an unexplainable ERROR: Invalid mla_gallery tax_query on my mla_gallery code.
It turned out that there was a CR LF in between of some of the parms (so not in their values).[mla_gallery ids="629,627,630,628" link=file mla_fixed_page="array('?p=3583','?m=201411','?p=165#comment-25','?page_id=3438')" mla_fixed_title="array('Title"1','Title'2','Title 3','Title 4')" mla_fixed_alt="array('Alt 1','Alt 2','Alt 3','Alt 4')" mla_link_href="{+site_url+}/{+mla_fixed_page+}" mla_link_attributes="title='{+mla_fixed_title+}'" mla_image_attributes="alt='{+mla_fixed_alt+}'"]
Just before mla_link_href is the CR LF. When removed the code looks like this:
[mla_gallery ids="629,627,630,628" link=file mla_fixed_page="array('?p=3583','?m=201411','?p=165#comment-25','?page_id=3438')" mla_fixed_title="array('Title"1','Title'2','Title 3','Title 4')" mla_fixed_alt="array('Alt 1','Alt 2','Alt 3','Alt 4')" mla_link_href="{+site_url+}/{+mla_fixed_page+}" mla_link_attributes="title='{+mla_fixed_title+}'" mla_image_attributes="alt='{+mla_fixed_alt+}'"]
This is almost invisible in the WP editor.
Would it be possible to remove CR LF when processing the mla_gallery code? If not would it be possible to give an error message pointing to the existence of CR LFs?
- The topic ‘"Invisible" CR LF giving ERROR: Invalid mla_gallery tax_query’ is closed to new replies.