X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/11be8dc178e77d0b46189bbd8e33a216a9b90942..672d6bc6da735e745275ef7a86341dc1178da8d2:/wp-admin/export.php diff --git a/wp-admin/export.php b/wp-admin/export.php index dbe1b143..807ef0fa 100644 --- a/wp-admin/export.php +++ b/wp-admin/export.php @@ -9,6 +9,9 @@ /** Load WordPress Bootstrap */ require_once ('admin.php'); +if ( !current_user_can('edit_files') ) + wp_die(__('You do not have sufficient permissions to export the content of this blog.')); + /** Load WordPress export API */ require_once('includes/export.php'); $title = __('Export'); @@ -24,7 +27,7 @@ require_once ('admin-header.php');
-

+

@@ -42,14 +45,14 @@ require_once ('admin-header.php'); $authors = $wpdb->get_col( "SELECT post_author FROM $wpdb->posts GROUP BY post_author" ); foreach ( $authors as $id ) { $o = get_userdata( $id ); - echo ""; + echo ""; } ?> -

+