Fix deprecated code (PHP 7.4)

This commit is contained in:
savvasha
2020-08-07 14:24:00 +03:00
parent e6b0776714
commit 75d4469b21

View File

@@ -172,7 +172,7 @@ if ( $title )
<tr class="sp-row sp-post<?php echo ( $i % 2 == 0 ? ' alternate' : '' ); ?>" itemscope itemtype="http://schema.org/SportsEvent"> <tr class="sp-row sp-post<?php echo ( $i % 2 == 0 ? ' alternate' : '' ); ?>" itemscope itemtype="http://schema.org/SportsEvent">
<td> <td>
<?php do_action( 'sportspress_event_blocks_before', $event, $usecolumns ); ?> <?php do_action( 'sportspress_event_blocks_before', $event, $usecolumns ); ?>
<?php echo implode( $logos, ' ' ); ?> <?php echo implode( ' ', $logos ); ?>
<time class="sp-event-date" datetime="<?php echo $event->post_date; ?>" itemprop="startDate" content="<?php echo mysql2date( 'Y-m-d\TH:iP', $event->post_date ); ?>"> <time class="sp-event-date" datetime="<?php echo $event->post_date; ?>" itemprop="startDate" content="<?php echo mysql2date( 'Y-m-d\TH:iP', $event->post_date ); ?>">
<?php echo sp_add_link( get_the_time( get_option( 'date_format' ), $event ), $permalink, $link_events ); ?> <?php echo sp_add_link( get_the_time( get_option( 'date_format' ), $event ), $permalink, $link_events ); ?>
</time> </time>