[wp-trac] [WordPress Trac] #58342: Use register_block_type_from_metadata in register_core_block_types_from_metadata

WordPress Trac noreply at wordpress.org
Wed May 31 21:20:25 UTC 2023


#58342: Use register_block_type_from_metadata in
register_core_block_types_from_metadata
---------------------------------------------+---------------------------
 Reporter:  spacedmonkey                     |       Owner:  spacedmonkey
     Type:  enhancement                      |      Status:  assigned
 Priority:  high                             |   Milestone:  6.3
Component:  Editor                           |     Version:  5.5
 Severity:  normal                           |  Resolution:
 Keywords:  good-first-bug has-patch commit  |     Focuses:  performance
---------------------------------------------+---------------------------
Changes (by spacedmonkey):

 * keywords:  good-first-bug has-patch => good-first-bug has-patch commit
 * owner:  (none) => spacedmonkey
 * priority:  normal => high
 * status:  new => assigned
 * milestone:  Future Release => 6.3


Comment:

 Making this as ready for commit.

 This is not just a code quality change. This change removes 31 calls to
 file exists, so this change has a performance benefit. Flagging the
 performance lead @flixos90 for review.

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


More information about the wp-trac mailing list