• In the kws_rich_text_tags function, there’s this line:

    if( user_can_richedit() && in_array( $pagenow, array( 'edit-tags.php', 'categories.php', 'media.php', 'term.php', 'profile.php', 'user-edit.php' ) ) ) {

    which then removes the wp_filter_kses function from a list of filters including pre_term_description to prevent WordPress from stripping out the HTML tags that’ve been added by the rich text editor.

    However, that line doesn’t add any handling of WP’s ‘Quick Edit’ option for categories, which executes via AJAX. As a result, if you do a quick edit on a category, its description is stripped of all HTML tags.

    So that line needs something like:

    * A check for $pagenow == ‘admin-ajax.php’
    * A check for $_POST[‘action’] == ‘inline-save-tax’

  • The topic ‘Bug: Category ‘Quick Edit’ strips tags out of description’ is closed to new replies.