Viewing 1 post (of 1 total)
    • Author
      Posts
    • JustinReinhart
      Guest

      Bug: Line breaks cause parameters to disappear (critical problem when posting by email)

      If I send a plaintext email to WordPress (to post by email) containing the following:

      Code:

      [sc:deal1 itemid=”B004FYEZMQ” productimage=”http://ecx.images-amazon.com/images/I/517WrLQT7iL._SL160_.jpg” producttitle=”Mass Effect 3 – Xbox 360″ formattedprice=”$21.95″ bragline=”Lowest price ever”]


      Wordpress, or gmail–who knows?–will sometimes add a line break so that the resulting post code looks like this:

      Code:

      [sc:deal1 itemid=”B004FYEZMQ”
      productimage=”http://ecx.images-amazon.com/images/I/517WrLQT7iL._SL160_.jpg” producttitle=”Mass Effect 3 – Xbox 360″ formattedprice=”$21.95″ bragline=”Lowest price ever”]

      Bug: What happens here is that the post will show up except that first parameter (itemid) will be assumed to be blank. In other words, whenever “%%itemid%%” is used in the Shortcoder snippet (I use it about 4 times) it is now considered to be “” (blank).

      This is caused by the linebreak that gets added outside of my control when posting by email. The only workaround is editing the posts by manually removing the linebreak. The reason I consider this to be a Shortcoder bug and not a WordPress bug is because parameters #2 and beyond all seem to work. It seems to be an internal problem with Shortcoder that somehow it does not see the first parameter after a linebreak occurs.

      Reference for feature I use:

      http://jetpack.me/support/post-by-email/

      Reference for website where bug is occurring:

      http://amazot.com

    Viewing 1 post (of 1 total)
    • The topic ‘Bug: Line breaks cause parameters to disappear’ is closed to new replies.

    Subscribe to our Newsletter

    Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter

    By using this website, you agree to our Terms