X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/11be8dc178e77d0b46189bbd8e33a216a9b90942..e8f61417994be715a90671aa87f1cd70d8ba132a:/wp-admin/options-discussion.php?ds=sidebyside diff --git a/wp-admin/options-discussion.php b/wp-admin/options-discussion.php index f267db22..3d59195f 100644 --- a/wp-admin/options-discussion.php +++ b/wp-admin/options-discussion.php @@ -5,66 +5,90 @@ * @package WordPress * @subpackage Administration */ - /** WordPress Administration Bootstrap */ -require_once('admin.php'); +require_once( dirname( __FILE__ ) . '/admin.php' ); + +if ( ! current_user_can( 'manage_options' ) ) + wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); $title = __('Discussion Settings'); $parent_file = 'options-general.php'; -include('admin-header.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()->set_help_sidebar( + '' . __('For more information:') . '
' . + '' . __('Documentation on Discussion Settings') . '
' . + '' . __('Support Forums') . '
' +); + +include( ABSPATH . 'wp-admin/admin-header.php' ); ?>