Upgrading Media Library Assistant
-
When I upgrade Media Library Assistant to lastest version, I see < and > converted.
< to <
> to >It changes the code. How do I stop this?
Bruce
-
Thanks for your question, and for attempting to illustrate the problem in your post.
To give you a specific answer I need to know where exactly this conversion is taking place. Are you looking at the content of a post/page and the source text of an
[mla_gallery]shortcode?I do know that the Gutenberg editor makes this type of conversion, even if you use the “code” editor mode. Is that a possible source?
Any additional details you can provide will help me investigate further. Thanks for your interest in the plugin.
< to & l t ;
> to & g t ;I use them on a webpage….
I use this way…. <!– Start Update –> to REM out the line.
Before update… <!– Start Update –>
After Update… & l t ; !– Start Company Update –& g t ; & l t ;t r & g t ;I am using spacing because this page seems to convert back.
Bruce
Thanks for your update with the additional details. As you have experienced, WordPress is very aggressive in “improving” HTML markup here in the forum.
As I mentioned, this practice extends to the various editors WordPress provides for posts and pages. It looks like this is what is happening to your webpage. I have experiences this and I have not found any way to turn it off.
MLA does not have any features that alter the content of a post or page. You can test this by temporarily disabling MLA and then editing and updating the webpage. I believe you will see that the conversion is performed by the editor. If not, let me know the steps you follow to create the problem and I will try to reproduce them.
I will leave this topic unresolved for now and hope to see an update from you with the results of your testing. Thanks for your help.
I will dig some more. However, It works fine if I don’t upgrade the plugin.
If I upgrade, it messes up the code. When I downgrade, the code is fine. So I did isolate to this plugin.
Appreciate the help.
Bruce
Thanks! I can do more digging, too, if I know where your code is.
Is it in the body/content of a post or page? If not, where would I put it to reproduce the problem?
You wrote:
Before update… <!– Start Update –> After Update… & l t ; !– Start Company Update –& g t ; & l t ;t r & g t ;Does the text really change from “Start Update” to “Start Company Update”? Does it really add a “tr” tag?
Thanks for your patience and your help.
No, it does not change the Start Update to Start Company Update. I will try to be clearer…
I use a widget in WordPress. I enter code like this….
<!– Start Update –><tr> <td> Morgan Report Update <br> <font size=”2″><font color=”#FF0000″><p style=”line-height: 1.0;”>Questions from the Membership and a Quick Market Update</font><br>Posted: July 5, 2022</font></td>
</tr><!– End Update –>When I update MLA, it changes the code to…
& l t ;!– Start Update –& g t ; <tr> <td> Morgan Report Update <br> <font size=”2″><font color=”#FF0000″><p style=”line-height: 1.0;”>Questions from the Membership and a Quick Market Update</font><br>Posted: July 5, 2022</font></td>
</tr><& l t ;!– End Update –& g t ;I can make a video if that helps.
Bruce
Thanks for sticking with me and providing this update with additional information. You wrote “I use a widget in WordPress.” There are many widgets, including an old “MLA Text Widget”, that support HTML. If you can tell me which widget you are using I can try to reproduce your issue. The HTML you provided looks like one row in an enclosing table; it would be helpful to see the entire source text if that’s possible.
It’s very interesting that the only changes made are to the comments; none of the other tags look affected. Is that accurate?
You are welcome to make a video, post additional information or contact me at my web site if email would be more convenient. I can post a summary here when the issue is resolved.
Thanks for your persistence and your help. If there’s something I can fix I will do my best.
I made a video for you. This should clear things up.
[video src="https://s3.amazonaws.com/themorganreport.com/temp/MediaLibraryIssue.mp4" /]
Yes, only thing that gets changed is the < and > characters. So if the code it something like… <font> the code changes to & l t ;font & g t ;.
Bruce
Thank you for taking the time to create a video illustrating the problem. It gave me everything I needed to find and fix the MLA defect you have identified. It showed me that 1) the MLA Text widget was the context in which the problem occurred, 2) the problem occurred when the widget source was edited in admin mode and 3) the defect was introduced in MLA v2.90.
MLA v2.90, released in November of 2020, contained this update:
Fix: Systematic review and update of all files for validating, sanitizing and escaping user data to reduce the risk of security exploits.
That required dozens of edits in many of the MLA code files, and a few mistakes were made in the process. Most of them were found and fixed in subsequent updates; I hope you have uncovered the last of them.
I have uploaded a new MLA Development Version dated 20220707 that corrects the problem. You can find step-by-step instructions for using the Development Version in this earlier topic:
PHP Warning on media upload with Polylang
Once the Development Version is installed you can retest the handling of HTML markup when editing an MLA Text widget.
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. Thanks for alerting me to this MLA defect.
Ok, it is installed and so far… seems to be working fine. I will test some more and let you know.
Appreciate the efforts on this one.
Have a great weekend.
Bruce
I have released MLA v3.03, which contains the fix for this topic.
I am marking this topic resolved, but please update it if you have problems or further questions regarding the MLA Text Widget fix in the new version. Thank you.
The topic ‘Upgrading Media Library Assistant’ is closed to new replies.