Skip to content

Commit

Permalink
Merge pull request #468 from TheCrowned/fix/465-notepad-updated-time
Browse files Browse the repository at this point in the history
Displaying updated time instead of creation time in Notepad Dashboard Widget
  • Loading branch information
rinatkhaziev authored Jun 15, 2018
2 parents 72c7b9f + 5864f7d commit 4e5bd20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/dashboard/widgets/dashboard-notepad.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function notepad_widget() {
$current_post = ( ! empty( $posts[0] ) ) ? $posts[0] : false;

if ( $current_post )
$last_updated = '<span id="dashboard-notepad-last-updated">' . sprintf( __( '%1$s last updated on %2$s', 'edit-flow' ), get_user_by( 'id', $current_post->post_author )->display_name, get_the_time( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $current_post ) ) . '</span>';
$last_updated = '<span id="dashboard-notepad-last-updated">' . sprintf( __( '%1$s last updated on %2$s', 'edit-flow' ), get_user_by( 'id', $current_post->post_author )->display_name, get_the_modified_time( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $current_post ) ) . '</span>';
else
$last_updated = '';

Expand Down Expand Up @@ -109,4 +109,4 @@ public function notepad_widget() {
}
}

}
}

0 comments on commit 4e5bd20

Please sign in to comment.