Make WordPress Core

Changeset 52053


Ignore:
Timestamp:
11/08/2021 09:41:43 PM (3 years ago)
Author:
johnjamesjacoby
Message:

Admin/Help: add docs links to several screens.

This change intends to better guide users towards many of the useful resources available on WordPress.org.

  • Appearance/Customizer - Add link to Customizer docs.
  • Appearance/Editor - Improve link text & destination.
  • Privacy Settings - Link to Privacy Settings docs.
  • Site Health - Link to Site Health docs.

Props audrasjb, jdy68, webcommsat.

Fixes #54357.

Location:
trunk/src/wp-admin
Files:
4 edited

Legend:

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

    r52044 r52053  
    234234                    </div>
    235235                    <div class="customize-panel-description">
    236                     <?php
    237                         _e( 'The Customizer allows you to preview changes to your site before publishing them. You can navigate to different pages on your site within the preview. Edit shortcuts are shown for some editable elements.' );
    238                     ?>
     236                        <p>
     237                            <?php
     238                            _e( 'The Customizer allows you to preview changes to your site before publishing them. You can navigate to different pages on your site within the preview. Edit shortcuts are shown for some editable elements.' );
     239                            ?>
     240                        </p>
     241                        <p>
     242                            <?php
     243                            _e( '<a href="https://wordpress.org/support/article/appearance-customize-screen/">Documentation on Customizer</a>' );
     244                            ?>
     245                        </p>
    239246                    </div>
    240247                </div>
  • trunk/src/wp-admin/options-privacy.php

    r51657 r52053  
    2929
    3030$action = isset( $_POST['action'] ) ? $_POST['action'] : '';
     31
     32get_current_screen()->add_help_tab(
     33    array(
     34        'id'      => 'overview',
     35        'title'   => __( 'Overview' ),
     36        'content' =>
     37                '<p>' . __( 'The Privacy screen lets you either build a new privacy-policy page or choose one you already have to show.' ) . '</p>' .
     38                '<p>' . __( 'This screen includes suggestions to help you write your own privacy policy. However, it is your responsibility to use these resources correctly, to provide the information required by your privacy policy, and to keep this information current and accurate.' ) . '</p>'
     39    )
     40);
     41
     42get_current_screen()->set_help_sidebar(
     43    '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
     44    '<p>' . __( '<a href="https://wordpress.org/support/article/settings-privacy-screen/">Documentation on Privacy Settings</a>' ) . '</p>'
     45);
    3146
    3247if ( ! empty( $action ) ) {
  • trunk/src/wp-admin/site-health.php

    r52018 r52053  
    7474
    7575$health_check_site_status = WP_Site_Health::get_instance();
     76
     77get_current_screen()->add_help_tab(
     78    array(
     79        'id'      => 'overview',
     80        'title'   => __( 'Overview' ),
     81        'content' =>
     82                '<p>' . __( 'This screen allows you to obtain a health diagnosis of your site, and displays an overall rating of the status of your installation.' ) . '</p>' .
     83                '<p>' . __( 'In the Status tab, you can see critical information about your WordPress configuration, along with anything else that requires your attention.' ) . '</p>' .
     84                '<p>' . __( 'In the Info tab, you will find all the details about the configuration of your WordPress site, server, and database. There is also an export feature that allows you to copy all of the information about your site to the clipboard, help solve problems on your site when obtaining support.' ) . '</p>'
     85    )
     86);
     87
     88get_current_screen()->set_help_sidebar(
     89    '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
     90    '<p>' . __( '<a href="https://wordpress.org/support/article/site-health-screen/">Documentation on Site Health tool</a>' ) . '</p>'
     91);
    7692
    7793// Start by checking if this is a special request checking for the existence of certain filters.
  • trunk/src/wp-admin/theme-editor.php

    r51979 r52053  
    5151    '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    5252    '<p>' . __( '<a href="https://developer.wordpress.org/themes/">Documentation on Theme Development</a>' ) . '</p>' .
    53     '<p>' . __( '<a href="https://wordpress.org/support/article/using-themes/">Documentation on Using Themes</a>' ) . '</p>' .
     53    '<p>' . __( '<a href="https://wordpress.org/support/article/appearance-editor-screen/">Documentation on Editing Themes</a>' ) . '</p>' .
    5454    '<p>' . __( '<a href="https://wordpress.org/support/article/editing-files/">Documentation on Editing Files</a>' ) . '</p>' .
    5555    '<p>' . __( '<a href="https://developer.wordpress.org/themes/basics/template-tags/">Documentation on Template Tags</a>' ) . '</p>' .
Note: See TracChangeset for help on using the changeset viewer.