Skip to content

Commit 5de798c

Browse files
committed
Merge branch 'fix/textdomain-load' into develop
2 parents ff03e78 + 1ba256c commit 5de798c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

amnesty-donations.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,9 @@ class Init {
5757
* Bind hooks
5858
*/
5959
public function __construct() {
60-
$this->data = get_plugin_data( __FILE__ );
61-
6260
add_filter( 'register_translatable_package', [ $this, 'register_translatable_package' ], 12 );
6361

64-
add_action( 'plugins_loaded', [ $this, 'textdomain' ] );
62+
add_action( 'init', [ $this, 'textdomain' ] );
6563
add_action( 'init', [ $this, 'register_block' ] );
6664
add_action( 'init', [ $this, 'register_meta' ] );
6765

@@ -128,6 +126,8 @@ public function handle_currency_change( string $currency ): string {
128126
* @return void
129127
*/
130128
public function textdomain(): void {
129+
$this->data = get_plugin_data( __FILE__ );
130+
131131
load_plugin_textdomain( 'aidonations', false, basename( __DIR__ ) . '/languages' );
132132
}
133133

0 commit comments

Comments
 (0)