diff -r c7c34916027a -r 177826044cd9 wp/wp-admin/options-discussion.php --- a/wp/wp-admin/options-discussion.php Mon Oct 14 18:06:33 2019 +0200 +++ b/wp/wp-admin/options-discussion.php Mon Oct 14 18:28:13 2019 +0200 @@ -8,25 +8,28 @@ /** WordPress Administration Bootstrap */ require_once( dirname( __FILE__ ) . '/admin.php' ); -if ( ! current_user_can( 'manage_options' ) ) +if ( ! current_user_can( 'manage_options' ) ) { wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); +} -$title = __('Discussion Settings'); +$title = __( 'Discussion Settings' ); $parent_file = 'options-general.php'; add_action( 'admin_print_footer_scripts', 'options_discussion_add_js' ); -get_current_screen()->add_help_tab( array( - 'id' => 'overview', - 'title' => __('Overview'), - 'content' => '
' . __('This screen provides many options for controlling the management and display of comments and links to your posts/pages. So many, in fact, they won’t all fit here! :) Use the documentation links to get information on what each discussion setting does.') . '
' . - '' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '
', -) ); +get_current_screen()->add_help_tab( + array( + 'id' => 'overview', + 'title' => __( 'Overview' ), + 'content' => '' . __( 'This screen provides many options for controlling the management and display of comments and links to your posts/pages. So many, in fact, they won’t all fit here! :) Use the documentation links to get information on what each discussion setting does.' ) . '
' . + '' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '
', + ) +); get_current_screen()->set_help_sidebar( - '' . __('For more information:') . '
' . - '' . __('Documentation on Discussion Settings') . '
' . - '' . __('Support Forums') . '
' + '' . __( 'For more information:' ) . '
' . + '' . __( 'Documentation on Discussion Settings' ) . '
' . + '' . __( 'Support' ) . '
' ); include( ABSPATH . 'wp-admin/admin-header.php' ); @@ -36,61 +39,66 @@