Adjust text options to modify front-end only

This commit is contained in:
Brian Miyaji
2014-03-22 12:57:47 +11:00
parent 019cb20c5f
commit 27e76e0ea8
3 changed files with 41 additions and 44 deletions

View File

@@ -70,14 +70,13 @@ function sportspress_gettext( $translated_text, $untranslated_text, $domain ) {
$translated_text = $venue->name;
endif;
endif;
endif;
if ( isset( $sportspress_options['text'] ) ):
foreach( $sportspress_options['text'] as $key => $value ):
if ( $untranslated_text == $key ):
$translated_text = $value;
endif;
endforeach;
if ( isset( $sportspress_options['text'] ) ):
foreach( $sportspress_options['text'] as $key => $value ):
if ( $translated_text == $key ):
$translated_text = $value;
endif;
endforeach;
endif;
endif;
return $translated_text;