[wp-trac] [WordPress Trac] #49986: Twenty Twenty: Remove unnecessary $css_dependencies variable in twentytwenty_block_editor_styles()

WordPress Trac noreply at wordpress.org
Thu Apr 23 16:13:56 UTC 2020


#49986: Twenty Twenty: Remove unnecessary $css_dependencies variable in
twentytwenty_block_editor_styles()
---------------------------+----------------------------------------
 Reporter:  ocean90        |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Future Release
Component:  Bundled Theme  |    Version:  5.3
 Severity:  normal         |   Keywords:  needs-patch good-first-bug
  Focuses:                 |
---------------------------+----------------------------------------
 `twentytwenty_block_editor_styles()` defines `$css_dependencies` with an
 empty array which is only used in the `wp_enqueue_style()` call. There's
 no need for an extra variable here.

 This was probably copied from `twentytwenty_register_styles()` at some
 point before
 [https://github.com/WordPress/twentytwenty/commit/761faa7b4a2194f96fcaee9aff7da5868d3550e6
 #diff-78cd5aa3783a74555c9938a2a81d01c6L182 Font Awesome was replaced].

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


More information about the wp-trac mailing list