diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-01-15 18:54:57 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-01-15 18:54:57 +0000 |
commit | 77b813b181f6785f713a74b2a56228d3e3a2cb02 (patch) | |
tree | ec3997aaf4efa5a18986751a9398825ae7afa763 /wp-admin/profile.php | |
parent | 3fc985cd56bb7d918262c904010de0d721380cbc (diff) | |
download | wordpress-mu-77b813b181f6785f713a74b2a56228d3e3a2cb02.tar.gz wordpress-mu-77b813b181f6785f713a74b2a56228d3e3a2cb02.tar.xz wordpress-mu-77b813b181f6785f713a74b2a56228d3e3a2cb02.zip |
Check for edit_posts capability (fixes #180)
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@845 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/profile.php')
-rw-r--r-- | wp-admin/profile.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-admin/profile.php b/wp-admin/profile.php index 6c96230..3cf24e5 100644 --- a/wp-admin/profile.php +++ b/wp-admin/profile.php @@ -30,7 +30,7 @@ $bookmarklet_height= 440; <h3><?php _e('Personal Options'); ?></h3> -<?php if ( rich_edit_exists() ) : // don't bother showing the option if the editor has been removed ?> +<?php if ( rich_edit_exists() && current_user_can( 'edit_posts' ) ) : // don't bother showing the option if the editor has been removed ?> <p><label for="rich_editing"><input name="rich_editing" type="checkbox" id="rich_editing" value="true" <?php checked('true', get_user_option('rich_editing')); ?> /> <?php _e('Use the visual editor when writing') ?></label></p> <?php endif; ?> |