From 79a46307e3609145383cded44686e570e00e0731 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Tue, 20 Sep 2022 13:46:03 +0000 Subject: [PATCH] Help/About: Add a help tab in Theme Install screen for the new "Block Themes" search filter. Follow-up to [53906]. Props audrasjb, poena, robinwpdeveloper, webcommsat. Fixes #56405. git-svn-id: https://develop.svn.wordpress.org/trunk@54252 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/theme-install.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/wp-admin/theme-install.php b/src/wp-admin/theme-install.php index 668f856c50..558181d961 100644 --- a/src/wp-admin/theme-install.php +++ b/src/wp-admin/theme-install.php @@ -138,9 +138,23 @@ get_current_screen()->add_help_tab( ) ); +// Help tab: Block themes. +$help_block_themes = + '

' . __( 'A block theme is a theme that uses blocks for all parts of a site including navigation menus, header, content, and site footer. These themes are built for the features that allow you to edit and customize all parts of your site.' ) . '

' . + '

' . __( ' With a block theme, you can place and edit blocks without affecting your content by customizing or creating new templates.' ) . '

'; + +get_current_screen()->add_help_tab( + array( + 'id' => 'block_themes', + 'title' => __( 'Block themes' ), + 'content' => $help_block_themes, + ) +); + get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . '

' . __( 'Documentation on Adding New Themes' ) . '

' . + '

' . __( 'Documentation on Block Themes' ) . '

' . '

' . __( 'Support' ) . '

' );