Skip to content

Commit

Permalink
Calypsoify: fix Masterbar reference after its refactor
Browse files Browse the repository at this point in the history
In #17762 and #17783 we've refactored the Masterbar, but forgot to update references to it in the Calypsoify feature, thus causing Fatal errors.
  • Loading branch information
jeherve committed Dec 3, 2020
1 parent 41c4703 commit be06727
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/calypsoify/class.jetpack-calypsoify.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Ported from an internal Automattic plugin.
*/

use Automattic\Jetpack\Dashboard_Customizations\Masterbar;
use Automattic\Jetpack\Redirect;
use Automattic\Jetpack\Status;

Expand Down Expand Up @@ -76,8 +77,8 @@ public function admin_color_override( $color ) {
}

public function mock_masterbar_activation() {
include_once JETPACK__PLUGIN_DIR . 'modules/masterbar/masterbar.php';
new A8C_WPCOM_Masterbar;
include_once JETPACK__PLUGIN_DIR . 'modules/masterbar/masterbar/class-masterbar.php';
new Masterbar();
}

public function remove_core_menus() {
Expand Down

0 comments on commit be06727

Please sign in to comment.