WordPress.org

Forums

Allowing HTML in user description broken in 3.8? (2 posts)

  1. TrishaM
    Member
    Posted 1 year ago #

    WIth previous versions of WP I was able to use the following code to modify the sanitization of HTML in the user's bio text in order to allow some simple HTML tags (p,br,strong,em,a etc) but this does not work after upgrading to ver. 3.8

    remove_filter('pre_user_description', 'wp_filter_kses');
    add_filter( 'pre_user_description', 'wp_filter_post_kses' );

    I looked through user.php just to see if the core changed but it doesn't look like it did, so I don't know why the above doesn't work.

    Any suggestions for how I can allow basic HTML without resorting to another plugin?

  2. TrishaM
    Member
    Posted 1 year ago #

    Hmmm….nevermind…..it actually IS working…….I am using a stylesheet with the HTML5 Reset styles and neglected to set a style for the (reset) strong tag….my bad...

Topic Closed

This topic has been closed to new replies.

About this Topic