@@ 371-375 (lines=5) @@ | ||
368 | $posted = $this->sfwp_transients->get( $transient ); |
|
369 | } |
|
370 | ||
371 | if ( isset( $posted ) && is_array( $posted ) ) { |
|
372 | $map = $posted; |
|
373 | } elseif ( 'edit' === $method || 'clone' === $method || 'delete' === $method ) { |
|
374 | $map = $this->mappings->get_fieldmaps( isset( $get_data['id'] ) ? sanitize_key( $get_data['id'] ) : '' ); |
|
375 | } |
|
376 | ||
377 | if ( isset( $map ) && is_array( $map ) ) { |
|
378 | $label = $map['label']; |
|
@@ 429-433 (lines=5) @@ | ||
426 | $posted = $this->sfwp_transients->get( $transient ); |
|
427 | } |
|
428 | ||
429 | if ( isset( $posted ) && is_array( $posted ) ) { |
|
430 | $map_row = $posted; |
|
431 | } elseif ( 'edit' === $method || 'delete' === $method ) { |
|
432 | $map_row = $this->mappings->get_failed_object_map( isset( $get_data['id'] ) ? sanitize_key( $get_data['id'] ) : '' ); |
|
433 | } |
|
434 | ||
435 | if ( isset( $map_row ) && is_array( $map_row ) ) { |
|
436 | $salesforce_id = $map_row['salesforce_id']; |