X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/449d082fcc4873c1f7d363a0d9f7409be7f6e77d..672d6bc6da735e745275ef7a86341dc1178da8d2:/wp-admin/options-discussion.php diff --git a/wp-admin/options-discussion.php b/wp-admin/options-discussion.php index f267db22..132f0b3c 100644 --- a/wp-admin/options-discussion.php +++ b/wp-admin/options-discussion.php @@ -9,6 +9,9 @@ /** WordPress Administration Bootstrap */ require_once('admin.php'); +if ( ! current_user_can('manage_options') ) + wp_die(__('You do not have sufficient permissions to manage options for this blog.')); + $title = __('Discussion Settings'); $parent_file = 'options-general.php'; @@ -17,7 +20,7 @@ include('admin-header.php');
-

+

@@ -25,7 +28,7 @@ include('admin-header.php'); - - - - - -
+
@@ -36,14 +39,14 @@ include('admin-header.php');
+
+

+
@@ -114,7 +117,7 @@ printf( __('Comments should be displayed with the %s comments at the top of each
+
@@ -124,10 +127,10 @@ printf( __('Comments should be displayed with the %s comments at the top of each
-

+
+

-

+

@@ -135,8 +138,8 @@ printf( __('Comments should be displayed with the %s comments at the top of each
-

+
+

@@ -154,25 +157,25 @@ printf( __('Comments should be displayed with the %s comments at the top of each - - -
+
__("Don’t show Avatars"), 1 => __('Show Avatars')); foreach ( $yesorno as $key => $value) { $selected = (get_option('show_avatars') == $key) ? 'checked="checked"' : ''; - echo "\n\t
"; + echo "\n\t
"; } ?>
+
__('G — Suitable for all audiences'), 'PG' => __('PG — Possibly offensive, usually for audiences 13 and above'), 'R' => __('R — Intended for adult audiences above 17'), 'X' => __('X — Even more mature than above')); foreach ($ratings as $key => $rating) : $selected = (get_option('avatar_rating') == $key) ? 'checked="checked"' : ''; - echo "\n\t
"; + echo "\n\t
"; endforeach; ?> @@ -180,7 +183,7 @@ endforeach;
+

@@ -201,7 +204,7 @@ $size = 32; $avatar_list = ''; foreach ( $avatar_defaults as $default_key => $default_name ) { $selected = ($default == $default_key) ? 'checked="checked" ' : ''; - $avatar_list .= "\n\t