]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/options-privacy.php
Wordpress 2.8.5-scripts
[autoinstalls/wordpress.git] / wp-admin / options-privacy.php
index c46b72083105e12cd3114f6407bafbc47424b4db..009e94301566ef754340cddc4283b6107467afd3 100644 (file)
@@ -9,6 +9,9 @@
 /** Load 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 = __('Privacy Settings');
 $parent_file = 'options-general.php';
 
@@ -17,7 +20,7 @@ include('./admin-header.php');
 
 <div class="wrap">
 <?php screen_icon(); ?>
-<h2><?php echo wp_specialchars( $title ); ?></h2>
+<h2><?php echo esc_html( $title ); ?></h2>
 
 <form method="post" action="options.php">
 <?php settings_fields('privacy'); ?>
@@ -25,7 +28,7 @@ include('./admin-header.php');
 <table class="form-table">
 <tr valign="top">
 <th scope="row"><?php _e('Blog Visibility') ?> </th>
-<td><fieldset><legend class="hidden"><?php _e('Blog Visibility') ?> </legend>
+<td><fieldset><legend class="screen-reader-text"><span><?php _e('Blog Visibility') ?> </span></legend>
 <p><input id="blog-public" type="radio" name="blog_public" value="1" <?php checked('1', get_option('blog_public')); ?> />
 <label for="blog-public"><?php _e('I would like my blog to be visible to everyone, including search engines (like Google, Sphere, Technorati) and archivers');?></label></p>
 <p><input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked('0', get_option('blog_public')); ?> />
@@ -39,7 +42,7 @@ include('./admin-header.php');
 <?php do_settings_sections('privacy'); ?>
 
 <p class="submit">
-       <input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
+       <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
 </p>
 </form>