From 7e9e87e79015c4b5de2d38c71aa6c9cd9ae3e527 Mon Sep 17 00:00:00 2001 From: Tonya Mork Date: Tue, 31 Oct 2023 18:51:35 +0000 Subject: [PATCH] Twenty Twenty-Four: Bugfixes for 6.4 RC3. This update includes the following bugfixes: - Fix: Added a new block pattern for the home template that inherits the page query and fits the design of the home page. (more context on the theme repo: https://github.com/WordPress/twentytwentyfour/pull/706) - Fix: Rely on parent theme data for block style. - Fix: Categories for some patterns. - Fix: Minor labeling issues Follow-up to [56999], [56951], [56813], [56764], [56716]. Reviewed by flixos90, jorbin. Merges [57036] to the 6.4 branch. Props anlino, beafialho, desrosj, devmuhib, didierjm, fabiorubioglio, flixos90, hanneslsm, hellofromTonya, huzaifaalmesbah, ktaron, luminuu, mshowes, onemaggie, phillsav, poena, rajinsharwar, richtabor, shailu25. Fixes #59770, #59759. git-svn-id: https://develop.svn.wordpress.org/branches/6.4@57037 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentytwentyfour/functions.php | 7 +-- .../patterns/page-home-blogging.php | 2 +- .../patterns/page-home-business.php | 4 +- .../twentytwentyfour/patterns/posts-list.php | 62 +++++++++++++++++++ .../patterns/template-home-business.php | 6 +- .../patterns/template-home-portfolio.php | 2 +- .../twentytwentyfour/templates/home.html | 2 +- 7 files changed, 73 insertions(+), 12 deletions(-) create mode 100644 src/wp-content/themes/twentytwentyfour/patterns/posts-list.php diff --git a/src/wp-content/themes/twentytwentyfour/functions.php b/src/wp-content/themes/twentytwentyfour/functions.php index 443035f384649..2dbd05355d550 100644 --- a/src/wp-content/themes/twentytwentyfour/functions.php +++ b/src/wp-content/themes/twentytwentyfour/functions.php @@ -32,9 +32,9 @@ function twentytwentyfour_block_styles() { 'core/button', array( 'handle' => 'twentytwentyfour-button-style-outline', - 'src' => get_theme_file_uri( 'assets/css/button-outline.css' ), - 'ver' => wp_get_theme()->get( 'Version' ), - 'path' => get_theme_file_path( 'assets/css/button-outline.css' ), + 'src' => get_parent_theme_file_uri( 'assets/css/button-outline.css' ), + 'ver' => wp_get_theme( get_template() )->get( 'Version' ), + 'path' => get_parent_theme_file_path( 'assets/css/button-outline.css' ), ) ); @@ -45,7 +45,6 @@ function twentytwentyfour_block_styles() { 'label' => __( 'Arrow icon', 'twentytwentyfour' ), /* * Styles for the custom Arrow icon style of the Details block - * https://github.com/WordPress/twentytwentyfour/issues/46 */ 'inline_style' => ' .is-style-arrow-icon-details { diff --git a/src/wp-content/themes/twentytwentyfour/patterns/page-home-blogging.php b/src/wp-content/themes/twentytwentyfour/patterns/page-home-blogging.php index d1c52425698a0..ae88e9006c74c 100644 --- a/src/wp-content/themes/twentytwentyfour/patterns/page-home-blogging.php +++ b/src/wp-content/themes/twentytwentyfour/patterns/page-home-blogging.php @@ -22,7 +22,7 @@
- +
diff --git a/src/wp-content/themes/twentytwentyfour/patterns/page-home-business.php b/src/wp-content/themes/twentytwentyfour/patterns/page-home-business.php index fb526b25c0e2b..ca22952174553 100644 --- a/src/wp-content/themes/twentytwentyfour/patterns/page-home-business.php +++ b/src/wp-content/themes/twentytwentyfour/patterns/page-home-business.php @@ -1,7 +1,7 @@ - + diff --git a/src/wp-content/themes/twentytwentyfour/patterns/posts-list.php b/src/wp-content/themes/twentytwentyfour/patterns/posts-list.php new file mode 100644 index 0000000000000..5db93af229eea --- /dev/null +++ b/src/wp-content/themes/twentytwentyfour/patterns/posts-list.php @@ -0,0 +1,62 @@ + + + +
+ +

+ + + +
+ +
+ + +
+ + + +
+ +
+ +
+ + + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + +
+ +
+ +
+ diff --git a/src/wp-content/themes/twentytwentyfour/patterns/template-home-business.php b/src/wp-content/themes/twentytwentyfour/patterns/template-home-business.php index e6a41b74d76bf..e84a5aca903c0 100644 --- a/src/wp-content/themes/twentytwentyfour/patterns/template-home-business.php +++ b/src/wp-content/themes/twentytwentyfour/patterns/template-home-business.php @@ -1,8 +1,8 @@
- +
diff --git a/src/wp-content/themes/twentytwentyfour/patterns/template-home-portfolio.php b/src/wp-content/themes/twentytwentyfour/patterns/template-home-portfolio.php index 23e45032261be..4fc4f072ba3c9 100644 --- a/src/wp-content/themes/twentytwentyfour/patterns/template-home-portfolio.php +++ b/src/wp-content/themes/twentytwentyfour/patterns/template-home-portfolio.php @@ -2,7 +2,7 @@ /** * Title: Portfolio home template with post featured images * Slug: twentytwentyfour/template-home-portfolio - * Template Types: front-page, index, home + * Template Types: front-page, home * Viewport width: 1400 * Inserter: no */ diff --git a/src/wp-content/themes/twentytwentyfour/templates/home.html b/src/wp-content/themes/twentytwentyfour/templates/home.html index 92c4c041a5bfa..7c364b8558277 100644 --- a/src/wp-content/themes/twentytwentyfour/templates/home.html +++ b/src/wp-content/themes/twentytwentyfour/templates/home.html @@ -1 +1 @@ - +