displays user that imported file
This commit is contained in:
parent
a2198da831
commit
ee67138f31
|
@ -89,7 +89,7 @@ class Bulk_Edit_Process extends Generic_Process {
|
|||
$author_name = $current_user->user_login;
|
||||
|
||||
$title_label = __('Collection', 'tainacan');
|
||||
$author_label = __('Processed by', 'tainacan');
|
||||
$author_label = __('Edited by', 'tainacan');
|
||||
$metadata_label = __('Changed metadata', 'tainacan');
|
||||
|
||||
$message = __('Bulk edit finished', 'tainacan');
|
||||
|
|
|
@ -1018,11 +1018,15 @@ class CSV extends Importer {
|
|||
*/
|
||||
public function get_output() {
|
||||
$imported_file = basename($this->get_tmp_file());
|
||||
$current_user = wp_get_current_user();
|
||||
$author = $current_user->user_login;
|
||||
|
||||
$message = __('imported file:', 'tainacan');
|
||||
$message .= " <b> ${imported_file} </b><br/>";
|
||||
$message .= __('target collections:', 'tainacan');
|
||||
$message .= " <b>" . implode(", ", $this->get_collections_names() ) . "</b><br/>";
|
||||
$message .= __('Imported by:', 'tainacan');
|
||||
$message .= " <b> ${author} </b><br/>";
|
||||
|
||||
return $message;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue