Skip to content

Commit

Permalink
Merge pull request #2836 from raftaar1191/issue-2784
Browse files Browse the repository at this point in the history
fix(compat): Change hook that load give text domain #2784
  • Loading branch information
Devin Walker committed Feb 24, 2018
2 parents 6ccd748 + 0225947 commit 75c1b68
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions give.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,11 @@ public function __construct() {
*/
private function init_hooks() {
register_activation_hook( GIVE_PLUGIN_FILE, 'give_install' );

add_action( 'plugins_loaded', array( $this, 'init' ), 0 );

// Set up localization on init Hook.
add_action( 'init', array( $this, 'load_textdomain' ), 0 );
}

/**
Expand All @@ -292,9 +296,6 @@ public function init() {
*/
do_action( 'before_give_init' );

// Set up localization.
$this->load_textdomain();

$this->roles = new Give_Roles();
$this->api = new Give_API();
$this->give_settings = new Give_Admin_Settings();
Expand Down

0 comments on commit 75c1b68

Please sign in to comment.