[wp-trac] [WordPress Trac] #51497: Custom HTML Block with Javascript not saving

WordPress Trac noreply at wordpress.org
Mon Oct 12 11:44:54 UTC 2020


#51497: Custom HTML Block with Javascript not saving
-------------------------------+------------------------------
 Reporter:  10bradders10       |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Editor             |     Version:  5.5.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by 10bradders10):

 To reproduce:

 1. Add Custom HTML Block
 2. Paste in code.

 {{{
 <!-- semrush siteaudit widget -->
 <div id="ssa-widget"></div>
 <script type="text/javascript">
     (function() {
         var p = "https://www.semrush.com/leadgen/static/js/widget.min.js";
         var d = document, s = d.createElement("script");
         s.src = p + "?v=" + Math.random();
         (d.head || d.body).appendChild(s);
         s.onload = function() {
             new SEMRUSH.SiteauditWidget({
                 widgetApiKey: "594049775f50e972b3ae4a2a"
             });
         }
     })();

 </script>
 <!-- /semrush siteaudit widget -->
 }}}

 or this code

 {{{
 <script
 src="https://bookme.name/js/booklikeaboss.embed.js?i=3048&h=k4ND4TCutlQuiswPPstg5wI4oBCoNMosqHka7NT19bHRzB2VnmIo4I0J9SRn"
 async></script>
 }}}

 3. Update page.

 Currently trying to confirm if this is a bug in WP, or a server issue.

 Anyone else experienced the same?

 Thanks.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51497#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list