[wp-trac] [WordPress Trac] #56707: `register_block_type`'s `editor_script` handle fails if it is an array.

WordPress Trac noreply at wordpress.org
Sat Oct 1 04:26:41 UTC 2022


#56707: `register_block_type`'s `editor_script` handle fails if it is an array.
--------------------------+-----------------------------
 Reporter:  nendeb55      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I had multiple handles for editor_script and passed the handles to
 editor_script as an array.
 It works fine in WP6.0 but fails in WP61 and the block becomes unusable.

 I know that `editor_script` was deprecated in WP6.1 and changed to
 `editor_script_handles`, but please fix it because it is not backward
 compatible that `editor_script` cannot be passed as an array.

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


More information about the wp-trac mailing list