[wp-trac] [WordPress Trac] #59114: Infinite loop after upgrading from WordPress 6.1.3 to 6.2

WordPress Trac noreply at wordpress.org
Thu Aug 17 10:39:06 UTC 2023


#59114: Infinite loop after upgrading from WordPress 6.1.3 to 6.2
---------------------------+------------------------------
 Reporter:  kevincorrigan  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Script Loader  |     Version:  6.3
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by ivanzhuck):

 @kevincorrigan, as temporary solution you can add a condition which checks
 how many times was called action 'wp_default_scripts', like here:

 {{{
 add_filter('wp_video_shortcode_library',
 'test_video_shortcode_library_enqueue_script');

 function test_video_shortcode_library_enqueue_script()
 {
         if (did_action( 'wp_default_scripts' ) === 1) {
                 wp_enqueue_script('basic-video-shortcode',
 get_parent_theme_file_uri('/media-test.js'), array(), '', true);
         }

         return 'test_video_mejs';
 }

 }}}

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


More information about the wp-trac mailing list