Skip to content

Commit 80dad65

Browse files
committed
Fix simple liniting issues
1 parent e1339fc commit 80dad65

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

themes/osi/inc/template-tags.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* @return void
1717
*/
1818
function osi_posted_on( string $format = '' ) {
19-
2019
$time_string = '<time class="byline--date entry-date published" datetime="%1$s">%2$s</time>';
2120

2221
// Don't display the updated date for blog posts and meeting-minutes.
@@ -429,7 +428,6 @@ function osi_get_single_taxonomy_terms_query( \WP_Post $post, string $taxonomy_s
429428
* @return string
430429
*/
431430
function osi_get_terms_from_taxonomy_links_all( string $tax = '' ) {
432-
433431
$terms = get_terms( $tax );
434432

435433
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
@@ -464,7 +462,6 @@ function osi_get_terms_from_taxonomy_links_all( string $tax = '' ) {
464462
* @return string
465463
*/
466464
function osi_get_terms_from_taxonomy_checkboxes( string $tax = '' ) {
467-
468465
$terms = get_terms( $tax );
469466

470467
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
@@ -556,7 +553,8 @@ function osi_post_type_query( string $posttype = 'post', int $perpage = 6, int $
556553
/**
557554
* Reusable taxonomy archive query
558555
*/
559-
if ( ! function_exists( 'osi_taxonomy_query' ) ) { /**
556+
if ( ! function_exists( 'osi_taxonomy_query' ) ) {
557+
/**
560558
* Creates a reusable taxonomy query.
561559
*
562560
* @param string $posttype The post type.
@@ -991,4 +989,4 @@ function osi_get_valid_sub_field( string $field_name, string $subfield_name ) {
991989
*/
992990
function osi_the_valid_sub_field( string $field_name, string $subfield_name ) {
993991
echo osi_get_valid_sub_field( $field_name, $subfield_name ); // phpcs:ignore
994-
}
992+
}

0 commit comments

Comments
 (0)