diff --git a/admin/hooks/manage-posts-columns.php b/admin/hooks/manage-posts-columns.php index 588efe07..e6fc1f3b 100644 --- a/admin/hooks/manage-posts-columns.php +++ b/admin/hooks/manage-posts-columns.php @@ -111,8 +111,8 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) { case 'sp_sponsor': echo get_the_terms ( $post_id, 'sp_sponsor' ) ? the_terms( $post_id, 'sp_sponsor' ) : '—'; break; - case 'sp_datetime': - echo sportspress_get_post_datetime( $post ); + case 'sp_time': + echo get_post_time( 'H:i', false, $post ); break; case 'sp_events': echo sizeof( sportspress_get_calendar_data( $post_id ) ); diff --git a/admin/post-types/event.php b/admin/post-types/event.php index d0d694d1..febd3972 100644 --- a/admin/post-types/event.php +++ b/admin/post-types/event.php @@ -243,7 +243,8 @@ function sportspress_event_article_meta( $post ) { function sportspress_event_edit_columns() { $columns = array( 'cb' => '', - 'sp_datetime' => '', + 'date' => '', + 'sp_time' => '', 'title' => __( 'Event', 'sportspress' ), 'sp_team' => __( 'Teams', 'sportspress' ), 'sp_league' => __( 'League', 'sportspress' ), diff --git a/functions.php b/functions.php index b972b575..8fa20a3d 100644 --- a/functions.php +++ b/functions.php @@ -185,14 +185,6 @@ if ( !function_exists( 'sportspress_set_post_views' ) ) { } } -if ( !function_exists( 'sportspress_get_post_datetime' ) ) { - function sportspress_get_post_datetime( $post ) { - $date = get_post_time( 'Y/m/d', false, $post ); - $time = get_post_time( '@ H:i', false, $post ); - return $date . '
' . $time; - } -} - if ( !function_exists( 'sportspress_get_post_precision' ) ) { function sportspress_get_post_precision( $post_id ) { $precision = get_post_meta ( $post_id, 'sp_precision', true );