[wp-trac] [WordPress Trac] #52556: WordPress is adding   always

WordPress Trac noreply at wordpress.org
Wed Feb 17 14:44:45 UTC 2021


#52556: WordPress is adding   always
----------------------------------------+-----------------------------
 Reporter:  snuffybg                    |      Owner:  (none)
     Type:  defect (bug)                |     Status:  new
 Priority:  normal                      |  Milestone:  Awaiting Review
Component:  General                     |    Version:
 Severity:  normal                      |   Keywords:
  Focuses:  javascript, administration  |
----------------------------------------+-----------------------------
 Hello,
 This bug is happening only if gutenberg editor is disabled.
 Ill try to explain in best way how wordpress is adding this &nbsp.

 1. Create a new page
 1.1 Type a title or without both give same result.
 1.2 In content there should be nothing
 1.3 Publish

 2. After publish try to leave the page editing lest say clicking on
 dashboard from the menu.
 Wordpress will promp asking to save changes.
 If you are in visual editor and swap to text editor you will notice that
   was added.

 3. If you click update everytime wordpress will add a new  

 In inspector i have notice this script


 {{{
 <script type="text/javascript">
             addLoadEvent = function(func) {
                 if (typeof jQuery !== 'undefined')
                     jQuery(document).ready(func);
                 else if (typeof wpOnload !== 'function') {
                     wpOnload = func;
                 } else {
                     var oldonload = wpOnload;
                     wpOnload = function() {
                         oldonload();
                         func();
                     }
                 }
             }
             ;
             var ajaxurl = '/luxdigital/wp-admin/admin-ajax.php'
               , pagenow = 'page'
               , typenow = 'page'
               , adminpage = 'post-php'
               , thousandsSeparator = ' '
               , decimalPoint = ','
               , isRtl = 0;
         </script>
 }}}

 If i put a breakpoint and reload the page will return thousandsSeparator
 undefined
 I dont know much about this function and the idea behind it but any ideas
 how to prevent this would be great.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52556>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list