Make WordPress Core

Ticket #54357: 54357.1.diff

File 54357.1.diff, 4.9 KB (added by jdy68, 4 years ago)

corrected patch

  • src/wp-admin/customize.php

    diff --git a/src/wp-admin/customize.php b/src/wp-admin/customize.php
    index 0dd548d43a..7ef8894914 100644
    a b do_action( 'customize_controls_head' ); 
    241241                                                <button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button>
    242242                                        </div>
    243243                                        <div class="customize-panel-description">
    244                                         <?php
    245                                                 _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.' );
    246                                         ?>
     244                                                <p>
     245                                                        <?php
     246                                                        _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.' );
     247                                                        ?>
     248                                                </p>
     249                                                <p>
     250                                                        <?php
     251                                                        _e( '<a href="https://wordpress.org/support/article/appearance-customize-screen/">Documentation on Customizer</a>' );
     252                                                        ?>
     253                                                </p>
    247254                                        </div>
    248255                                </div>
    249256
  • src/wp-admin/options-privacy.php

    diff --git a/src/wp-admin/options-privacy.php b/src/wp-admin/options-privacy.php
    index 0b0ca77ee9..4abeb18a30 100644
    a b add_filter( 
    2929
    3030$action = isset( $_POST['action'] ) ? $_POST['action'] : '';
    3131
     32get_current_screen()->add_help_tab(
     33        array(
     34                'id'      => 'overview',
     35                'title'   => __( 'Overview' ),
     36                'content' =>
     37                                '<p>' . __( 'The Privacy screen allows you to create new page of Privacy Policy for your site or specify existing one which contains the Privacy Policy of your site.' ) . '</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);
     46
    3247if ( ! empty( $action ) ) {
    3348        check_admin_referer( $action );
    3449
  • src/wp-admin/site-health.php

    diff --git a/src/wp-admin/site-health.php b/src/wp-admin/site-health.php
    index 9facc1f936..5748329e8d 100644
    a b if ( 'update_https' === $action ) { 
    7474
    7575$health_check_site_status = WP_Site_Health::get_instance();
    7676
     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 diagnosis of your site’s health and displays an overall rating of the status of your installation.' ) . '</p>' .
     83                                '<p>' . __( 'In the Status tab, you can see critical informations 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, your server and database. There is also an useful export feature that allows you to copy all of the information about your site to the clipboard to obtain support to solve a problem on your site.' ) . '</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);
     92
    7793// Start by checking if this is a special request checking for the existence of certain filters.
    7894$health_check_site_status->check_wp_version_check_exists();
    7995
  • src/wp-admin/theme-editor.php

    diff --git a/src/wp-admin/theme-editor.php b/src/wp-admin/theme-editor.php
    index 46926df87c..e8db1011aa 100644
    a b get_current_screen()->add_help_tab( 
    5050get_current_screen()->set_help_sidebar(
    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>' .
    5656        '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'