Don't assume that TinyMCE exists, and degrade gracefully if it doesn't. fixes #3272

git-svn-id: https://develop.svn.wordpress.org/trunk@4417 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2006-10-24 03:57:19 +00:00
parent 13fb18717f
commit c1f5e720eb
4 changed files with 21 additions and 15 deletions
+2
View File
@@ -30,8 +30,10 @@ $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 ?>
<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; ?>
<?php do_action('profile_personal_options'); ?>