Automattic / republication-tracker-tool

Provides a Creative Commons sharing button and tracking mechanism that integrates with Google Analytics to track republished articles from external websites.
https://wordpress.org/plugins/republication-tracker-tool/
GNU General Public License v2.0
7 stars 8 forks source link

Wrap the license statement in the modal with wpautop #86

Open benlk opened 3 years ago

benlk commented 3 years ago

https://github.com/INN/republication-tracker-tool/blob/4775fa7d7f63456c82b6e5ecff36ab07f4bfd05f/includes/shareable-content.php#L138

The settings field in Settings > Reading uses TinyMCE, which strips <p></p> and replaces them with a double newline. Users who put separate paragraphs in this editor will not receive separate paragraphs when their text is output in the modal unless the plugin adds wpautop() here.

benlk commented 3 years ago

As a workaround, you can use <br>s.