From 5a2587caefcc1d44cdb16265e87f069c91da4086 Mon Sep 17 00:00:00 2001 From: Christian Widlund Date: Fri, 30 Aug 2024 11:44:22 +0200 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=94=A7=20Update=20Acorn=20boot=20prio?= =?UTF-8?q?rity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acorn/upgrading-acorn.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acorn/upgrading-acorn.md b/acorn/upgrading-acorn.md index 9af9a4a7..4b6afc20 100644 --- a/acorn/upgrading-acorn.md +++ b/acorn/upgrading-acorn.md @@ -144,16 +144,16 @@ With the new one: ```php if (! function_exists('\Roots\bootloader')) { wp_die( - __('You need to install Acorn to use this theme.', 'sage'), + __('You need to install Acorn to use this site.', 'radicle'), '', [ 'link_url' => 'https://roots.io/acorn/docs/installation/', - 'link_text' => __('Acorn Docs: Installation', 'sage'), + 'link_text' => __('Acorn Docs: Installation', 'radicle'), ] ); } -\Roots\bootloader()->boot(); +add_action('after_setup_theme', fn () => \Roots\bootloader()->boot(), 0); ``` You can also remove the theme support added for Sage if you are working on a Sage-based WordPress theme: From b95f60a5704610ed96eda93bfef1e499e860711f Mon Sep 17 00:00:00 2001 From: Christian Widlund Date: Fri, 30 Aug 2024 11:48:13 +0200 Subject: [PATCH 2/3] revert translation key --- acorn/upgrading-acorn.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acorn/upgrading-acorn.md b/acorn/upgrading-acorn.md index 4b6afc20..4c417a77 100644 --- a/acorn/upgrading-acorn.md +++ b/acorn/upgrading-acorn.md @@ -144,11 +144,11 @@ With the new one: ```php if (! function_exists('\Roots\bootloader')) { wp_die( - __('You need to install Acorn to use this site.', 'radicle'), + __('You need to install Acorn to use this theme.', 'sage'), '', [ 'link_url' => 'https://roots.io/acorn/docs/installation/', - 'link_text' => __('Acorn Docs: Installation', 'radicle'), + 'link_text' => __('Acorn Docs: Installation', 'sage'), ] ); } From f7e148cf279cf21170f9896c4e6d889f9ea0f466 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Fri, 30 Aug 2024 08:41:06 -0500 Subject: [PATCH 3/3] Update upgrading-acorn.md --- acorn/upgrading-acorn.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/acorn/upgrading-acorn.md b/acorn/upgrading-acorn.md index 4c417a77..7ac6854d 100644 --- a/acorn/upgrading-acorn.md +++ b/acorn/upgrading-acorn.md @@ -1,10 +1,11 @@ --- -date_modified: 2024-08-02 13:45 +date_modified: 2024-08-30 08:45 date_published: 2023-01-13 13:12 description: Acorn v4 introduces some minimal breaking changes that may require updates when coming from Acorn v3. title: Upgrading Acorn authors: - ben + - chrillep - joshf ---