@@ 17-29 (lines=13) @@ | ||
14 | * |
|
15 | * @return array |
|
16 | */ |
|
17 | protected function export_user() { |
|
18 | $user_id = get_current_user_id(); |
|
19 | $user = get_userdata( $user_id ); |
|
20 | ||
21 | if ( $user ) { |
|
22 | return array( |
|
23 | 'name' => $user->display_name, |
|
24 | 'email' => $user->user_email, |
|
25 | ); |
|
26 | } |
|
27 | ||
28 | return false; |
|
29 | } |
|
30 | ||
31 | /** |
|
32 | * Delete the file. |
@@ 314-324 (lines=11) @@ | ||
311 | * |
|
312 | * Returns Array an array containing the author name and email |
|
313 | */ |
|
314 | public function last_modified_author() { |
|
315 | if ( $last_id = get_post_meta( $this->id, '_edit_last', true ) ) { |
|
316 | $user = get_userdata( $last_id ); |
|
317 | ||
318 | if ( $user ) { |
|
319 | return array( 'name' => $user->display_name, 'email' => $user->user_email ); |
|
320 | } |
|
321 | } |
|
322 | ||
323 | return array(); |
|
324 | } |
|
325 | ||
326 | /** |
|
327 | * The post's sha |