From fbf29b55fe47df3f4b08bae87a988688bcc2dd68 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Mon, 23 Jun 2014 00:38:56 +1000 Subject: [PATCH] Use filtered function to check if sp post type --- includes/sp-template-hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/sp-template-hooks.php b/includes/sp-template-hooks.php index d27de924..4b9af7b2 100644 --- a/includes/sp-template-hooks.php +++ b/includes/sp-template-hooks.php @@ -159,7 +159,7 @@ function sportspress_gettext( $translated_text, $untranslated_text, $domain ) { endswitch; endif; - if ( in_array( $typenow, array( 'sp_event', 'sp_team', 'sp_player', 'sp_list', 'sp_staff' ) ) ): + if ( is_sp_post_type( $typenow ) ): switch ( $untranslated_text ): case 'Author': $translated_text = __( 'User', 'sportspress' );