From c4590ff478acefea3850072358082777f4b45d86 Mon Sep 17 00:00:00 2001 From: Carsten Bach Date: Wed, 6 Mar 2024 13:25:33 +0100 Subject: [PATCH] Make sure textdomain is loaded before registering post_types etc. --- includes/core/classes/class-setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/core/classes/class-setup.php b/includes/core/classes/class-setup.php index 868612175..4560f1191 100644 --- a/includes/core/classes/class-setup.php +++ b/includes/core/classes/class-setup.php @@ -79,7 +79,7 @@ protected function setup_hooks(): void { register_activation_hook( GATHERPRESS_CORE_FILE, array( $this, 'activate_gatherpress_plugin' ) ); register_deactivation_hook( GATHERPRESS_CORE_FILE, array( $this, 'deactivate_gatherpress_plugin' ) ); - add_action( 'init', array( $this, 'load_textdomain' ) ); + add_action( 'init', array( $this, 'load_textdomain' ), 9 ); add_action( 'init', array( $this, 'maybe_flush_gatherpress_rewrite_rules' ) ); add_action( 'admin_notices', array( $this, 'check_users_can_register' ) );