Skip to content

Commit

Permalink
publish date updated to date_format in WP setting
Browse files Browse the repository at this point in the history
  • Loading branch information
wudanbal committed Aug 8, 2019
1 parent 12df6ab commit 1ae8810
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion partials/stats-all-episodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</thead>
<?php foreach ( $all_episodes_stats as $episode ) { ?>
<tr>
<td><?php echo $episode['date']; ?></td>
<td><?php echo $episode['formatted_date']; ?></td>
<td style="width: 50%;"><a href='<?php echo $episode['slug']; ?>'><?php echo $episode['episode_name']; ?></a></td>
<?php foreach ( $this->dates as $date ) { ?>
<td style='text-align: center;'><?php echo $episode[$date]; ?></td>
Expand Down
1 change: 1 addition & 0 deletions php/classes/class-all-episode-stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ private function get_all_episode_stats() {
'date' => date( 'Y-m-d', strtotime( $post->post_date ) ),
'slug' => admin_url( 'post.php?post=' . $post->ID . '&action=edit' ),
'listens' => $lifetime_count,
'formatted_date' => date_i18n( get_option('date_format'), strtotime( $post->post_date ) ),
);

foreach ( $this->dates as $date_key => $date ) {
Expand Down

0 comments on commit 1ae8810

Please sign in to comment.