Skip to content

Commit

Permalink
fix: remove translation workaround; the issue is fixed in WP
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelfulford committed Nov 22, 2024
1 parent 6651f67 commit 2f517c2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions newspack-theme/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down

0 comments on commit 2f517c2

Please sign in to comment.