Skip to content

Commit

Permalink
Fixed bug with config registry scope
Browse files Browse the repository at this point in the history
  • Loading branch information
dmhendricks committed Apr 7, 2018
1 parent 9042b34 commit 1c3538d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
class Plugin extends \WordPress_ToolKit\ToolKit {

public static $textdomain;
public static $config;

function __construct() {

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

// Set Text Domain
Expand Down

0 comments on commit 1c3538d

Please sign in to comment.