mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-18 00:25:37 +01:00
887422e56f
git-svn-id: http://svn.automattic.com/wordpress/trunk@2763 1a063a9b-81f0-0310-95a4-ce76da25c4cd
18 lines
480 B
PHP
18 lines
480 B
PHP
<?php
|
|
|
|
require_once('admin.php');
|
|
|
|
check_admin_referer();
|
|
|
|
if ( isset( $_POST['action'] ) ) {
|
|
if ( !isset( $_POST['rich_editing'] ) )
|
|
$_POST['rich_editing'] = 'false';
|
|
update_user_option( $current_user->id, 'rich_editing', $wpdb->escape($_POST['rich_editing']), true );
|
|
do_action('personal_options_update');
|
|
|
|
$goback = add_query_arg('updated', 'true', $_SERVER['HTTP_REFERER']);
|
|
$goback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $goback);
|
|
wp_redirect($goback);
|
|
}
|
|
|
|
?>
|