Commit d154c27 1 parent c33cd17 commit d154c27 Copy full SHA for d154c27
File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,12 @@ function sunflower_setup() {
28
28
* If you're building a theme based on sunflower, use a find and replace
29
29
* to change 'sunflower' to the name of your theme in all the template files.
30
30
*/
31
- load_theme_textdomain ( 'sunflower ' , get_template_directory () . '/languages ' );
31
+ // Hack for WordPress 6.7.0.
32
+ if ( version_compare ( $ GLOBALS ['wp_version ' ], '6.7 ' , '< ' ) ) {
33
+ load_theme_textdomain ( 'sunflower ' , get_template_directory () . '/languages ' );
34
+ } else {
35
+ load_textdomain ( 'sunflower ' , get_template_directory () . '/languages/ ' . determine_locale () . '.mo ' );
36
+ }
32
37
33
38
// Add default posts and comments RSS feed links to head.
34
39
add_theme_support ( 'automatic-feed-links ' );
You can’t perform that action at this time.
0 commit comments