[wp-trac] [WordPress Trac] #59532: Avoid registering block-patterns on the frontend

WordPress Trac noreply at wordpress.org
Wed Oct 4 08:28:31 UTC 2023


#59532: Avoid registering block-patterns on the frontend
--------------------------+-----------------------------
 Reporter:  aristath      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:  performance   |
--------------------------+-----------------------------
 Registering block patterns from a theme is an expensive process -
 especially when the theme includes many patterns (like the default
 twentytwenty-four theme).

 Block patterns are not needed for frontend requests, so we can simply skip
 registering them for requests that don't need them.

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


More information about the wp-trac mailing list