Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions themes/osi/inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ function osi_posted_on( string $format = '' ) {
esc_html( get_the_modified_date( $format ) )
);

$posted_on = sprintf(
/* translators: %s: post date. */
'<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
);
$posted_on = '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>';

echo '<span class="posted-on">' . $posted_on . '</span>'; // phpcs:ignore
}
Expand Down
2 changes: 2 additions & 0 deletions themes/osi/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* @package osi
*/

defined( 'ABSPATH' ) || exit;

get_header(); ?>

<section class="content <?php echo ( osi_display_sidebar() ? 'has_sidebar' : 'has_no_sidebar' ); ?>" id="content">
Expand Down
Loading