Use correct method name
This commit is contained in:
parent
72d41a21ca
commit
adc8f4eacb
|
@ -219,7 +219,7 @@ class WC_Product_CSV_Importer_Controller {
|
||||||
$file = $this->handle_upload();
|
$file = $this->handle_upload();
|
||||||
|
|
||||||
if ( is_wp_error( $file ) ) {
|
if ( is_wp_error( $file ) ) {
|
||||||
$this->add_error( $file->get_message() );
|
$this->add_error( $file->get_error_message() );
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
$this->file = $file;
|
$this->file = $file;
|
||||||
|
|
Loading…
Reference in New Issue