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
+5 -3
View File
@@ -17,9 +17,11 @@ if ( is_wp_error( $errors ) ) {
exit;
}
if ( !isset( $_POST['rich_editing'] ) )
$_POST['rich_editing'] = 'false';
update_user_option( $current_user->id, 'rich_editing', $_POST['rich_editing'], true );
if ( rich_edit_exists() ) {
if ( !isset( $_POST['rich_editing'] ) )
$_POST['rich_editing'] = 'false';
update_user_option( $current_user->id, 'rich_editing', $_POST['rich_editing'], true );
}
do_action('personal_options_update');