Skip to content

Commit

Permalink
Make sure textdomain is loaded before registering post_types etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
carstingaxion committed Mar 6, 2024
1 parent 55f7c87 commit c4590ff
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 c4590ff

Please sign in to comment.