Make WordPress Core

Ticket #56405: 56405.diff

File 56405.diff, 1.5 KB (added by poena, 2 years ago)

56405 Add block theme help tab

  • src/wp-admin/theme-install.php

     
    138138        )
    139139);
    140140
     141// Help tab: Block themes.
     142$help_block_themes = '<p>' . __( 'A block theme is a theme that uses blocks for all parts of a site including navigation menus, header, content, and site footer.
     143 These themes are built for the newest features in WordPress that allow you to edit
     144 and customize all parts of your site.' ) . '</p>' .
     145'<p>' . __( ' With a block theme, you can place and edit blocks outside your content by customizing or creating new templates.' ) . '</p>';
     146'<p>' . __( ' You can search for block themes using the Feature Filter, by checking the box for the keyword "full site editing".' ) . '</p>';
     147       
     148get_current_screen()->add_help_tab(
     149        array(
     150                'id'      => 'block_themes',
     151                'title'   => __( 'Block themes' ),
     152                'content' => $help_block_themes,
     153        )
     154);
     155
    141156get_current_screen()->set_help_sidebar(
    142157        '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    143158        '<p>' . __( '<a href="https://wordpress.org/support/article/appearance-themes-screen/#install-themes">Documentation on Adding New Themes</a>' ) . '</p>' .
     159        '<p>' . __( '<a href="https://wordpress.org/support/article/block-themes/">Documentation on block themes</a>' ) . '</p>' .
    144160        '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    145161);
    146162