|
16 | 16 | * @return void |
17 | 17 | */ |
18 | 18 | function osi_posted_on( string $format = '' ) { |
19 | | - |
20 | 19 | $time_string = '<time class="byline--date entry-date published" datetime="%1$s">%2$s</time>'; |
21 | 20 |
|
22 | 21 | // Don't display the updated date for blog posts and meeting-minutes. |
@@ -173,9 +172,13 @@ function osi_get_linked_logo( string $class_name = 'header-logo', string $size = |
173 | 172 | } |
174 | 173 |
|
175 | 174 | /** |
176 | | -* Check Block Registry if a block exists |
177 | | -*/ |
178 | | -function osi_check_block_registry( $name ) { |
| 175 | + * Check Block Registry if a block exists |
| 176 | + * |
| 177 | + * @param string $name The block name. |
| 178 | + * |
| 179 | + * @return boolean |
| 180 | + */ |
| 181 | +function osi_check_block_registry( $name ) { // phpcs:ignore |
179 | 182 | // return 1 or nothing |
180 | 183 | return WP_Block_Type_Registry::get_instance()->is_registered( $name ); |
181 | 184 | } |
@@ -424,7 +427,6 @@ function osi_get_single_taxonomy_terms_query( \WP_Post $post, string $taxonomy_s |
424 | 427 | * @return string |
425 | 428 | */ |
426 | 429 | function osi_get_terms_from_taxonomy_links_all( string $tax = '' ) { |
427 | | - |
428 | 430 | $terms = get_terms( $tax ); |
429 | 431 |
|
430 | 432 | if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) { |
@@ -459,7 +461,6 @@ function osi_get_terms_from_taxonomy_links_all( string $tax = '' ) { |
459 | 461 | * @return string |
460 | 462 | */ |
461 | 463 | function osi_get_terms_from_taxonomy_checkboxes( string $tax = '' ) { |
462 | | - |
463 | 464 | $terms = get_terms( $tax ); |
464 | 465 |
|
465 | 466 | if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) { |
@@ -581,7 +582,7 @@ function osi_taxonomy_query( string $posttype = 'post', int $perpage = 6, string |
581 | 582 | } |
582 | 583 |
|
583 | 584 | /** |
584 | | - * kses ruleset for SVG escaping |
| 585 | + * The kses ruleset for SVG escaping. |
585 | 586 | * |
586 | 587 | * @return array |
587 | 588 | */ |
@@ -800,7 +801,7 @@ function osi_credits( $args = array() ) { |
800 | 801 | $args = (array) $args; |
801 | 802 | } |
802 | 803 |
|
803 | | - $args = wp_parse_args( |
| 804 | + $args = wp_parse_args( |
804 | 805 | $args, |
805 | 806 | array( |
806 | 807 | 'separator' => ' ', |
|
0 commit comments