Skip to content

Commit

Permalink
Removed whitespace changes with respect to previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCrowned committed May 29, 2018
1 parent b8ad6a4 commit 5864f7d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/dashboard/widgets/dashboard-notepad.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ public function handle_notepad_update() {
public function notepad_widget() {

$args = array(
'posts_per_page' => 1,
'post_status' => 'draft',
'post_type' => self::notepad_post_type,
);
'posts_per_page' => 1,
'post_status' => 'draft',
'post_type' => self::notepad_post_type,
);
$posts = get_posts( $args );
$current_note = ( ! empty( $posts[0]->post_content ) ) ? $posts[0]->post_content : '';
$current_id = ( ! empty( $posts[0]->ID ) ) ? $posts[0]->ID : 0;
$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_modified_time( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $current_post ) ) . '</span>';
else
Expand Down

0 comments on commit 5864f7d

Please sign in to comment.