WordPress.org

Ready to get started?Download WordPress

Forums

Cimy User Extra Fields
[resolved] line breaks p/br not working with latest version 2.3.6 (7 posts)

  1. snurk
    Member
    Posted 2 years ago #

    Dear all,

    Just upgraded to the latest version of Cimy User Extra Fields, and it seems you can no longer have line breaks in the text fields??

    I've previously been using the below code as explained on the official website but it no longer makes any difference..

    global $allowedtags;
    
    // copy the array to not modify the original one
    $my_tags = $allowedtags;
    
    // add tag to allowed tags list
    $my_tags["p"] = array();
    $my_tags["br"] = array();

    Anyone else who has seen this? Any solution??

    http://wordpress.org/extend/plugins/cimy-user-extra-fields/

  2. Marco Cimmino
    Member
    Plugin Author

    Posted 2 years ago #

    I might have regressed it in v2.3.5 due to the fix:
    - Allow 'target' attribute for links added in the extra fields' description

    Can you confirm?

  3. Marco Cimmino
    Member
    Plugin Author

    Posted 2 years ago #

    But why you do not use instead the code:

    global $allowedtags;
    
    // add tag to allowed tags list
    allowedtags["p"] = array();
    allowedtags["br"] = array();
  4. snurk
    Member
    Posted 1 year ago #

    Hello,

    I still have this problem, I edit the text manually to make it work, which is time consuming.

    In which file (and where in the file) should the code be entered?

    Best regards,
    SNURK

  5. Marco Cimmino
    Member
    Plugin Author

    Posted 1 year ago #

    Once again this is for your own blog's security, you can also consider changing directly this file:
    /wp-includes/kses.php

    but do it if you know what you are doing.

  6. snurk
    Member
    Posted 1 year ago #

    Hmm.. sorry for my lack of knowledge, I do have no idea what I am doing.. :)

    Do you mean to paste this in /wp-includes/kses.php ?

    global $allowedtags;
    
    // add tag to allowed tags list
    allowedtags["p"] = array();
    allowedtags["br"] = array();

    Basically looking at being able to handle the textfield similar to how you edit posts with wysiwyg and insert line breaks.

  7. Marco Cimmino
    Member
    Plugin Author

    Posted 1 year ago #

    Hmm.. sorry for my lack of knowledge

    Then don't do these changes. End of story.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic