WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/24/2006 03:57:19 AM (14 years ago)
Author:
markjaquith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/profile-update.php

    r3985 r4417  
    1818}
    1919
    20 if ( !isset( $_POST['rich_editing'] ) )
    21     $_POST['rich_editing'] = 'false';
    22 update_user_option( $current_user->id, 'rich_editing', $_POST['rich_editing'], true );
     20if ( rich_edit_exists() ) {
     21    if ( !isset( $_POST['rich_editing'] ) )
     22        $_POST['rich_editing'] = 'false';
     23    update_user_option( $current_user->id, 'rich_editing', $_POST['rich_editing'], true );
     24}
    2325
    2426do_action('personal_options_update');
Note: See TracChangeset for help on using the changeset viewer.