[ Index ]

WordPress Source Cross Reference

title

Body

[close]

/wp-admin/ -> profile-update.php (source)

   1  <?php
   2  
   3  $parent_file = 'profile.php';
   4  $submenu_file = 'profile.php';
   5  require_once ('admin.php');
   6  
   7  check_admin_referer('update-profile_' . $user_ID);
   8  
   9  if ( !$_POST )
  10      wp_die( __('No post?') );
  11  
  12  $errors = edit_user($user_ID);
  13  
  14  if ( is_wp_error( $errors ) ) {
  15      foreach( $errors->get_error_messages() as $message )
  16          echo "$message<br />";
  17      exit;
  18  }
  19  
  20  if ( !isset( $_POST['rich_editing'] ) )
  21      $_POST['rich_editing'] = 'false';
  22  update_user_option( $current_user->id, 'rich_editing', $_POST['rich_editing'], true );
  23  
  24  do_action('personal_options_update');
  25  
  26  if ( 'profile' == $_POST['from'] )
  27      $to = 'profile.php?updated=true';
  28  else
  29      $to = 'profile.php?updated=true';
  30  
  31  wp_redirect( $to );
  32  exit;
  33  
  34  ?>

Your comment here...

Name: Location:
Comments:


List: Classes | Functions | Variables | Constants | Tables

Generated: Sat Jul 15 11:57:04 2006 Courtesy of Taragana