[wp-meta] [Making WordPress.org] #6195: Quick Edit and other JS broken on .org

Making WordPress.org noreply at wordpress.org
Wed Mar 16 07:58:53 UTC 2022


#6195: Quick Edit and other JS broken on .org
--------------------------+---------------------
 Reporter:  tobifjellner  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:
Component:  General       |  Resolution:
 Keywords:                |
--------------------------+---------------------

Comment (by ocean90):

 Replying to [comment:6 dd32]:
 > It appears that `common` is loaded via `load-scripts.php` regardless,
 just that without Gutenberg `common` is loaded twice..

 Huh, I'm not seeing that on test.wordpress.org/wp-admin.

 This is causing the JS errors:
 {{{
 <script type='text/javascript'>
 /* <![CDATA[ */
 var _wpUtilSettings = {"ajax":{"url":"\/wp-admin\/admin-ajax.php"}};var
 wpApiSettings = {"root":"https:\/\/test.wordpress.org\/wp-
 json\/","nonce":"0b7aa65013","versionString":"wp\/v2\/"};/* ]]> */
 </script>
 <script type='text/javascript' src='https://test.wordpress.org/wp-admin
 /load-scripts.php?c=0&load%5Bchunk_0%5D=hoverIntent,regenerator-
 runtime,wp-polyfill,common,hoverintent-js,admin-bar,clipboard,underscore
 ,wp-util,wp-api-request&ver=6.0-alpha-52937'></script>
 <script src='https://test.wordpress.org/wp-
 content/plugins/gutenberg/build/hooks/index.min.js?ver=cf663486a38abeb9211b951c31c45f52'
 id='wp-hooks-js'></script>
 <script src='https://test.wordpress.org/wp-
 content/plugins/gutenberg/build/i18n/index.min.js?ver=48225910192aa129f266fcda8da5fa7a'
 id='wp-i18n-js'></script>
 <script id='wp-i18n-js-after'>
 wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );
 </script>
 <script src='https://test.wordpress.org/wp-content/plugins/gutenberg/build
 /dom-ready/index.min.js?ver=ea6a91f02ba567427b25595ee72ecaff' id='wp-dom-
 ready-js'></script>
 }}}

 With
 [https://github.com/WordPress/gutenberg/blob/5c39cdb805c4a54ba4d30e5f8948aa2c2569985d/lib
 /client-assets.php#L277 this line in Gutenberg] commented out and no JS
 errors:


 {{{
 <script type='text/javascript' src='https://test.wordpress.org/wp-admin
 /load-scripts.php?c=0&load%5Bchunk_0%5D=hoverIntent,regenerator-
 runtime,wp-polyfill,wp-hooks&ver=6.0-alpha-52937'></script>
 <script src='https://test.wordpress.org/wp-
 includes/js/dist/i18n.min.js?ver=30fcecb428a0e8383d3776bcdd3a7834' id='wp-
 i18n-js'></script>
 <script id='wp-i18n-js-after'>
 wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );
 </script>
 <script src='https://test.wordpress.org/wp-
 admin/js/common.min.js?ver=6.0-alpha-52937' id='common-js'></script>
 <script src='https://test.wordpress.org/wp-includes/js/hoverintent-
 js.min.js?ver=2.2.1' id='hoverintent-js-js'></script>
 <script src='https://test.wordpress.org/wp-includes/js/admin-
 bar.min.js?ver=6.0-alpha-52937' id='admin-bar-js'></script>
 <script src='https://test.wordpress.org/wp-
 includes/js/clipboard.min.js?ver=6.0-alpha-52937' id='clipboard-
 js'></script>
 <script src='https://test.wordpress.org/wp-
 includes/js/underscore.min.js?ver=1.13.1' id='underscore-js'></script>
 <script id='wp-util-js-extra'>
 var _wpUtilSettings = {"ajax":{"url":"\/wp-admin\/admin-ajax.php"}};
 </script>
 }}}

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/6195#comment:7>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list