From 2f517c24343628ae0d4bb5e74542a11977a4b93f Mon Sep 17 00:00:00 2001 From: Laurel Fulford Date: Fri, 22 Nov 2024 10:43:35 -0800 Subject: [PATCH] fix: remove translation workaround; the issue is fixed in WP --- newspack-theme/functions.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/newspack-theme/functions.php b/newspack-theme/functions.php index 8063830b0..8701e3b3c 100755 --- a/newspack-theme/functions.php +++ b/newspack-theme/functions.php @@ -42,11 +42,7 @@ function newspack_setup() { * If you're building a theme based on Newspack Theme, use a find and replace * to change 'newspack' to the name of your theme in all the template files. */ - if ( version_compare( $GLOBALS['wp_version'], '6.7', '<' ) ) { - load_theme_textdomain( 'newspack', get_template_directory() . '/languages' ); - } else { - load_textdomain( 'newspack', get_template_directory() . '/languages/' . determine_locale() . '.mo' ); - } + load_theme_textdomain( 'newspack', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' );