Skip to content

Commit

Permalink
Twenty Twenty-Four: Remove pattern from home template to improve perf…
Browse files Browse the repository at this point in the history
…ormance.

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 [WordPress/twentytwentyfour#486 PR #486].

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

git-svn-id: https://develop.svn.wordpress.org/trunk@57945 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Apr 8, 2024
1 parent f18c917 commit 6ef8cf9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/wp-content/themes/twentytwentyfour/templates/home.html
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
<!-- wp:pattern {"slug":"twentytwentyfour/template-home-business"} /-->
<!-- wp:template-part {"slug":"header","area":"header","tagName":"header"} /-->

<!-- wp:group {"tagName":"main","style":{"spacing":{"blockGap":"0","margin":{"top":"0"}}},"layout":{"type":"default"}} -->
<main class="wp-block-group" style="margin-top:0">
<!-- wp:pattern {"slug":"twentytwentyfour/page-home-business"} /-->
</main>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","area":"footer","tagName":"footer"} /-->

0 comments on commit 6ef8cf9

Please sign in to comment.