Make WordPress Core

Changeset 54252


Ignore:
Timestamp:
09/20/2022 01:46:03 PM (2 years ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/theme-install.php

    r53908 r54252  
    139139);
    140140
     141// Help tab: Block themes.
     142$help_block_themes =
     143    '<p>' . __( '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.' ) . '</p>' .
     144    '<p>' . __( ' With a block theme, you can place and edit blocks without affecting your content by customizing or creating new templates.' ) . '</p>';
     145
     146get_current_screen()->add_help_tab(
     147    array(
     148        'id'      => 'block_themes',
     149        'title'   => __( 'Block themes' ),
     150        'content' => $help_block_themes,
     151    )
     152);
     153
    141154get_current_screen()->set_help_sidebar(
    142155    '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    143156    '<p>' . __( '<a href="https://wordpress.org/support/article/appearance-themes-screen/#install-themes">Documentation on Adding New Themes</a>' ) . '</p>' .
     157    '<p>' . __( '<a href="https://wordpress.org/support/article/block-themes/">Documentation on Block Themes</a>' ) . '</p>' .
    144158    '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    145159);
Note: See TracChangeset for help on using the changeset viewer.