[wp-trac] [WordPress Trac] #56470: viewScript setting does not set front end scripts for dynamic blocks

WordPress Trac noreply at wordpress.org
Tue Aug 30 21:30:44 UTC 2022


#56470: viewScript setting does not set front end scripts for dynamic blocks
-------------------------------------------------+-------------------------
 Reporter:  lovor                                |      Owner:  (none)
     Type:  defect (bug)                         |     Status:  new
 Priority:  normal                               |  Milestone:  Awaiting
                                                 |  Review
Component:  Script Loader                        |    Version:  trunk
 Severity:  normal                               |   Keywords:  has-patch
  Focuses:  ui, javascript, css, administration  |  needs-testing
-------------------------------------------------+-------------------------
 I discovered that in dynamic blocks viewScript does not work (i.e. does
 not enqueue script in front end). I discovered a code responsible in
 class-wp-block.php and attached proposed removal of condition that
 prevented loading frontend script for dynamic blocks.

 I see no reason that front end scripts should be prevented for dynamic
 blocks.

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


More information about the wp-trac mailing list