false); $file = wp_handle_upload($_FILES['import'], $overrides); if ( isset($file['error']) ) wp_die( $file['error'] ); $file = $file['file']; $upload_dir = wp_upload_dir(); $profile_photo = image_resize($file, '265','300',true,'profile',$upload_dir['basedir']); $filename = basename($profile_photo); update_option('bmb_author_profile', $filename); unlink($file); wp_redirect(admin_url('themes.php?page=bmb-author-photo&updated=true')); } } } } function bmb_theme_author_photo_settings() { //must check that the user has the required capability if (!current_user_can('manage_options')) { wp_die( __('You do not have sufficient permissions to access this page.') ); } // Read in existing option value from database $opt_val = get_option('bmb_author_profile'); ?>

Visit your site to see how it looks.' ), home_url( '/' ) ); ?>


Profile Photo