Skip to content

Commit 1c3538d

Browse files
committed
Fixed bug with config registry scope
1 parent 9042b34 commit 1c3538d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/Plugin.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
class Plugin extends \WordPress_ToolKit\ToolKit {
1010

1111
public static $textdomain;
12+
public static $config;
1213

1314
function __construct() {
1415

1516
// Load plugin configuration
16-
$this->init( dirname( __DIR__ ), trailingslashit( dirname( __DIR__ ) ) . 'plugin.json' );
17+
self::$config = $this->init( dirname( __DIR__ ), trailingslashit( dirname( __DIR__ ) ) . 'plugin.json' );
1718
self::$config->merge( new ConfigRegistry( [ 'plugin' => $this->get_current_plugin_meta( ARRAY_A ) ] ) );
1819

1920
// Set Text Domain

0 commit comments

Comments
 (0)