Skip to content

Commit e1308f2

Browse files
committed
Fix simple liniting issues
1 parent 1fc53af commit e1308f2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/template-functions.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,8 @@ function se_fix_se_events_fse_archive_template( $templates ) {
601601
*/
602602
function se_modify_event_date_archive_body_class( $classes ) {
603603
$classes = array_map(
604-
function ( $class ) {
605-
return 'post-type-archive-se-event-date' === $class ? 'post-type-archive-se-event' : $class;
604+
function ( $body_class ) {
605+
return 'post-type-archive-se-event-date' === $body_class ? 'post-type-archive-se-event' : $class;
606606
},
607607
$classes
608608
);
@@ -627,14 +627,14 @@ function se_modify_event_date_archive_template_title( $title ) {
627627

628628
// If this is a post_typw archive, use the post type archive title.
629629
if ( is_post_type_archive() ) {
630-
$title = apply_filters( 'post_type_archive_title', $post_type_obj->labels->name, 'se-event' );
631-
$prefix = _x( 'Archives:', 'post type archive title prefix' );
630+
$title = apply_filters( 'post_type_archive_title', $post_type_obj->labels->name, 'se-event' ); // phpcs:ignore
631+
$prefix = _x( 'Archives:', 'post type archive title prefix' ); // phpcs:ignore
632632
} elseif ( is_tax() && $post_type_obj ) {
633633
$tax = get_taxonomy( $post_type_obj->taxonomy );
634634
$title = single_term_title( '', false );
635635
$prefix = sprintf(
636636
/* translators: %s: Taxonomy singular name. */
637-
_x( '%s:', 'taxonomy term archive title prefix' ),
637+
_x( '%s:', 'taxonomy term archive title prefix' ), // phpcs:ignore
638638
$tax->labels->singular_name
639639
);
640640
} else {
@@ -648,11 +648,11 @@ function se_modify_event_date_archive_template_title( $title ) {
648648
*
649649
* @param string $prefix Archive title prefix.
650650
*/
651-
$prefix = apply_filters( 'get_the_archive_title_prefix', $prefix );
651+
$prefix = apply_filters( 'get_the_archive_title_prefix', $prefix ); // phpcs:ignore
652652
if ( $prefix ) {
653653
$title = sprintf(
654654
/* translators: 1: Title prefix. 2: Title. */
655-
_x( '%1$s %2$s', 'archive title' ),
655+
_x( '%1$s %2$s', 'archive title' ), // phpcs:ignore
656656
$prefix,
657657
'<span>' . $title . '</span>'
658658
);

0 commit comments

Comments
 (0)