[wp-trac] [WordPress Trac] #45271: Can't enqueue WordPress 5.0 builtin reactjs

WordPress Trac noreply at wordpress.org
Sun Nov 4 12:54:33 UTC 2018


#45271: Can't enqueue WordPress 5.0 builtin reactjs
-----------------------------------------+-------------------------
 Reporter:  CantoThemes                  |       Owner:  (none)
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  5.0
Component:  Script Loader                |     Version:  5.0
 Severity:  normal                       |  Resolution:
 Keywords:  reporter-feedback has-patch  |     Focuses:  javascript
-----------------------------------------+-------------------------

Comment (by CantoThemes):

 Yes this patch work but need to to fix this patch too.

 Right now `src/wp-admin/load-scripts.php` patch is

 {{{#!php
 <?php
 wp_default_packages_vendor( $scripts );
 wp_default_packages_scripts( $scripts );
 }}}


 But it should be

 {{{#!php
 <?php
 wp_default_packages_vendor( $wp_scripts );
 wp_default_packages_scripts( $wp_scripts );
 }}}

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


More information about the wp-trac mailing list