profile-update.php

来自「php 开发的内容管理系统」· PHP 代码 · 共 33 行

PHP
33
字号
<?phprequire_once('admin.php');check_admin_referer('update-profile_' . $user_ID);if ( !$_POST )	die( __('No post?') );$errors = edit_user($user_ID);if (count($errors) != 0) {	foreach ($errors as $id => $error) {		echo $error . '<br/>';	}	exit;}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');if ( 'profile' == $_POST['from'] )	$to = 'profile.php?updated=true';else	$to = 'profile.php?updated=true';wp_redirect( $to );exit;?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?