Open
Description
The Biographical Info (cap-description) field is double encoded. It generates HTML like this:
<label for="cap-description">Biographical Info</label></th><td>
<textarea style="width:300px;margin-bottom:6px;" name="cap-description">&amp;Aaron is
here.</textarea>
In class-coauthors-guest-authors.php
, in get_guest_author_fields()
, we have this code:
array(
'key' => 'description',
'label' => __( 'Biographical Info', 'co-authors-plus' ),
'group' => 'about',
'sanitize_function' => 'wp_filter_post_kses',
),
By calling wp_filter_post_kses
instead of the default filter (sanitize_text_field
), we end up with the double encoding.