Skip to content

Commit

Permalink
Merge pull request #584 from carstingaxion/fix/load-textdomain-earlier
Browse files Browse the repository at this point in the history
Make sure textdomain is loaded before registering post_types etc.
  • Loading branch information
mauteri authored Mar 6, 2024
2 parents 55f7c87 + c4590ff commit d8c9b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/core/classes/class-setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );

Expand Down

0 comments on commit d8c9b33

Please sign in to comment.