Friday, March 15 2019
  2 Replies
  3.8K Visits
Hi developers of WP Media Folder,
I like the plugin esp. for keeping the files in order.
Regardless this, I lately stumbled over a little bug concerning the PDF-embed-function:
When saving a PDF-link, while embedding activated, wordpress strips off the data-wpmf_pdf_embed-Attribute, disabling the embed-feature.
This happens to any user, who can edit posts, but is not Superadmin on Multisite, or in other words who cannot save unfiltered_html (I guess) .
At least everything is fine, when capability "unfiltered_html" is added.
I found a workaround, by (re-)injecting the stripped attribute by filter "wp_insert_post_data" into (saved) content, which one cannot expect from WP-Beginners.
Besides there's another flaw in the PDF-embed-function:
When inserting a PDF as embed in pure text-edior, the whole DOM-tree of the helper-DOMDocument-object (class-pdf-embed.php) is inserted as well, messing up the code.
I cleaned it up with hard-coding (preg_replace()).
Maybe there could be done some improvement concerning these points?
Thanks for Your answer.
2 years ago

Thanks for contacting us here about this extension.
In order to have a deeper look at your problem, please drop us a ticket (menu Support > Ticket support).
Our developer in charge will take a look at that.

2 years ago
OK, thanks.:D
  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!