inpsyde / MultilingualPress-Yoast-SEO-Sync

This is a simple add-on for the MultilingualPress plugin to synchronize the post metadata of the Yoast SEO plugin between translated posts.
GNU General Public License v2.0
7 stars 3 forks source link

HTML markup is removed from category descriptions when Yoast SEO is used #12

Closed mklasen closed 4 years ago

mklasen commented 4 years ago

Steps to reproduce

  1. Install latest versions of MLP Yoast(2.1.2) and MLP (3.3.0)
  2. Connect one site
  3. Create a category and fill the description using the WYSIWYG editor (and add some markup)
  4. Go to the linked category in the other language
  5. Save the linked category in the other language
  6. The HTML markup in the original language is removed

What should happen The HTML markup should be kept.

What happened instead The HTML markup is removed.

Notes

Kdamen1 commented 4 years ago

I have the same issue!

mklasen commented 4 years ago

@Dinamiko Any chance you can get me an update / confirmation on this issue?

Dinamiko commented 4 years ago

Hi @mklasen sorry for the delay in the response, this issue comes from MultilingualPress 3, we already have fixed it there and it will be included in the next release (3.3.1).

In the meantime, here is how to apply the fix: In src/multilingualpress/TranslationUi/Term/MetaboxFields.php line 89, change this: 'sanitize_textarea_field' for this: 'wp_kses_post'