Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Incorporating new asset manager dependency
  • Loading branch information
gititon authored and roccotripaldi committed Jun 5, 2019
commit b27b37b0868bd8b88c7eb17f4eb1e37936f3b1a3
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"automattic/jetpack-options": "@dev",
"automattic/jetpack-logo": "@dev",
"automattic/jetpack-constants": "@dev",
"automattic/jetpack-jitm": "@dev"
"automattic/jetpack-jitm": "@dev",
"automattic/jetpack-assets": "@dev"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "0.5.0",
Expand Down
1 change: 1 addition & 0 deletions packages/jitm/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"type": "library",
"license": "GPL-2.0-or-later",
"require": {
"automattic/jetpack-assets": "@dev",
"automattic/jetpack-connection": "^1.0",
"automattic/jetpack-logo": "@dev"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/jitm/src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Automattic\Jetpack\JITM;

use Automattic\Jetpack\Assets as Asset_Manager;
use Automattic\Jetpack\Assets\Manager as Asset_Manager;
use Automattic\Jetpack\Connection\Manager as Jetpack_Connection;
use Automattic\Jetpack\Logo as Jetpack_Logo;

Expand Down Expand Up @@ -53,6 +53,7 @@ public function __construct() {
if ( ! $jetpack_connection->is_active() || $jetpack_connection->is_development_mode() ) {
return;
}

add_action( 'current_screen', array( $this, 'prepare_jitms' ) );
}

Expand Down