Make WordPress Core


Ignore:
Timestamp:
04/08/2024 07:19:08 PM (8 months ago)
Author:
SergeyBiryukov
Message:

Twenty Twenty-Four: Remove pattern from home template to improve performance.

Creating the Home Business pattern was needed to show it on the template replacement flows, but there's no need to use it in the template, and the minor code repetition is better than having to do a an extra pattern replacement.

Follow-up to PR #486.

Props onemaggie, youknowriad, poena, afercia.
Fixes #60620.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyfour/templates/home.html

    r57036 r57945  
    1 <!-- wp:pattern {"slug":"twentytwentyfour/template-home-business"} /-->
     1<!-- wp:template-part {"slug":"header","area":"header","tagName":"header"} /-->
     2
     3<!-- wp:group {"tagName":"main","style":{"spacing":{"blockGap":"0","margin":{"top":"0"}}},"layout":{"type":"default"}} -->
     4<main class="wp-block-group" style="margin-top:0">
     5    <!-- wp:pattern {"slug":"twentytwentyfour/page-home-business"} /-->
     6</main>
     7<!-- /wp:group -->
     8
     9<!-- wp:template-part {"slug":"footer","area":"footer","tagName":"footer"} /-->
Note: See TracChangeset for help on using the changeset viewer.