WordPress.org

Ready to get started?Download WordPress

Forums

Attachments
[resolved] Problem with new lines in caption textareas (6 posts)

  1. jbx
    Member
    Posted 7 months ago #

    If I set the caption field for attachments to textarea (as shown in the example) newlines are not handled correctly.

    When I edit the post again instead of new lines I get \n (not the line-break, an actual backslash and letter n showing in the textarea). This is confusing users (editors managing attachments).

    Is there a way to fix this?

    http://wordpress.org/plugins/attachments/

  2. Jonathan Christopher
    Member
    Plugin Author

    Posted 7 months ago #

    Related to your other post, this issue will be looked into for the next release. You can manually process the occurrences of \n using str_replace for the time being until the next release comes out if you'd like.

  3. jbx
    Member
    Posted 7 months ago #

    Hi,

    How can I do that?
    The \n is appearing in the administrator not just the output text.
    How do I include this in the administrator side?

    Thanks.

  4. Jonathan Christopher
    Member
    Plugin Author

    Posted 6 months ago #

    Hi jbx so sorry for letting this thread fall by the wayside. I've got an update (3.5.2) coming out within an hour or two that will resolve this issue and a couple others that snuck in.

  5. Jonathan Christopher
    Member
    Plugin Author

    Posted 6 months ago #

    This issue has been resolved as of 3.5.2

  6. jbx
    Member
    Posted 6 months ago #

    Thanks, issue seems fixed now.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags