[wp-trac] [WordPress Trac] #59867: Navigation Block Rendering: Move code to a class

WordPress Trac noreply at wordpress.org
Thu Nov 9 12:37:08 UTC 2023


#59867: Navigation Block Rendering: Move code to a class
-------------------------+-----------------------------
 Reporter:  scruffian    |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Editor       |    Version:  trunk
 Severity:  normal       |   Keywords:  has-patch
  Focuses:               |
-------------------------+-----------------------------
 The navigation block render function is very long and hard to reason
 about. In Gutenberg we have moved the code to a class, and split it up
 into smaller functions so its easier to reason about and change.

 I am opening this patch now to get this change made in core in advance of
 WordPress 6.5 to give us plenty of time to review it.

 I didn't migrate the tests as we don't seem to have tests for blocks in
 core, but I'm happy to add it if that's helpful.

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


More information about the wp-trac mailing list