Skip to content

Commit

Permalink
fix(phpcs): Update Code with WordPress Coading Standard impress-org#2456
Browse files Browse the repository at this point in the history
  • Loading branch information
raftaar1191 committed Mar 20, 2018
1 parent f7b9df4 commit a826642
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions includes/forms/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -985,9 +985,9 @@ function _give_get_prefill_form_field_values( $form_id ) {

if ( is_user_logged_in() ) :
$donor_data = get_userdata( get_current_user_id() );
$donor = new Give_Donor( get_current_user_id(), true );
$donor = new Give_Donor( get_current_user_id(), true );
$donor_address = $donor->get_donor_address();
$company_name = $donor->get_company_name();
$company_name = $donor->get_company_name();

$logged_in_donor_info = array(
// First name.
Expand All @@ -997,7 +997,7 @@ function _give_get_prefill_form_field_values( $form_id ) {
'give_last' => $donor_data->last_name,

// Company name.
'company_name' => $company_name,
'company_name' => $company_name,

// Email.
'give_email' => $donor_data->user_email,
Expand Down
2 changes: 1 addition & 1 deletion includes/shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ function give_process_profile_editor_updates( $data ) {
$old_user_data = get_userdata( $user_id );

/* @var Give_Donor $donor */
$donor = new Give_Donor( $user_id, true );
$donor = new Give_Donor( $user_id, true );
$old_company_name = $donor->get_company_name();

$display_name = isset( $data['give_display_name'] ) ? sanitize_text_field( $data['give_display_name'] ) : $old_user_data->display_name;
Expand Down

0 comments on commit a826642

Please sign in to comment.