• Resolved dajanas

    (@dajanas)


    Hi,

    why does the “MLA Text” widget change the entered text after saving? This leads to complete chaos. For example, it turns

    <div class="example white">

    after saving into:

    <div class=&quot;example white&quot;>

    Why? How can I prevent this? I just want the entered text to remain as I enter it.

    PS: Unfortunately the text here displays the code incorrectly. Anyway, characters like the < or > or ” etc. are converted to strings like & lt; and & gt; (without the spaces)

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter dajanas

    (@dajanas)

    @dglingren Do you know why the code entered in the MLA widget is rewritten by saving? For example, why a < becomes a & lt; (without a space). How to disable it?

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your report and for trying to illustrate the problem in your text. As you can see, translating HTML special characters doesn’t always work the way you need it to.

    You have encountered an MLA defect, which I have fixed but not yet released. You can find more information and instructions on installing the latest Development Version (20220717) in this earlier topic:

    Upgrading Media Library Assistant

    The fix will be part of my next MLA version, but in the interim it would be great if you could install the Development Version and let me know if it works for you. I regret the inconvenience of this interim step. Thanks for your interest in the plugin.

    Thread Starter dajanas

    (@dajanas)

    Hi, I like to wait for the official release of the next update. I do not want to install test versions. It’s nice to know there will be a fix! 🙂

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your response; I certainly understand your preference. Rest assured that I never post a Development Version I don’t consider “release candidate” quality; no untested code and rarely new features.

    The next MLA version will be released before too much longer. Thanks for your patience.

    Thread Starter dajanas

    (@dajanas)

    @dglingren Hello, today version 3.02 has been released. The release info says there is a fix for the MLA Text Widget. What does “subject to a current_user_can(‘unfiltered_html’) check” mean though?

    • This reply was modified 3 years, 9 months ago by dajanas.
    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update. Please make sure you have updated to MLA v3.03, which corrects a defect not related to your specific issue but contains an important fix.

    You asked “What does “subject to a current_user_can(‘unfiltered_html’) check” mean though?” WordPress allows some user roles, e.g. Administrator and Editor, to “post HTML markup or even JavaScript code in pages, posts, comments and widgets.” Authors, Contributors and Subscribers do not have this capability.

    MLA applies the “current_user_can(‘unfiltered_html’) check” to conform to WordPress role and capability standards.

    To complete your work you will have to go back to your MLA Text Widget and restore the HTML markup. I regret this inconvenience.

    I am marking this topic resolved, but please update it if you have any trouble with the MLA Text Widget in the v3.03 release.

    Thread Starter dajanas

    (@dajanas)

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘MLA Text widget modifies entered text after saving’ is closed to new replies.