diff --git a/projects/plugins/wpcomsh/.phan/config.php b/projects/plugins/wpcomsh/.phan/config.php index a236f81beecd5..e060ea95c3951 100644 --- a/projects/plugins/wpcomsh/.phan/config.php +++ b/projects/plugins/wpcomsh/.phan/config.php @@ -15,7 +15,7 @@ array( 'exclude_file_regex' => array( 'tests/lib/mocks' ), 'exclude_file_list' => array( - __DIR__ . '/../../../plugins/jetpack/_inc/lib/class.color.php', + __DIR__ . '/../../../packages/classic-theme-helper/_inc/lib/class.color.php', ), 'parse_file_list' => array( // Reference files to handle code checking for stuff from Jetpack-the-plugin or other in-monorepo plugins. @@ -26,7 +26,7 @@ // other in 'require-dev' and `extra.dependencies.test-only' instead. See packages/config for an example. // -- // class.color.php provides the definition of the Jetpack_Color class. - __DIR__ . '/../../../plugins/jetpack/_inc/lib/class.color.php', + __DIR__ . '/../../../packages/classic-theme-helper/_inc/lib/class.color.php', // class.jetpack.php provides the definition of the Jetpack megaclass. __DIR__ . '/../../../plugins/jetpack/class.jetpack.php', // class.jetpack-gutenberg.php provides the definition of the Jetpack_Gutenberg class. diff --git a/projects/plugins/wpcomsh/lib/class.color.php b/projects/plugins/wpcomsh/lib/class.color.php index 023276097e11b..008bee6b898ff 100644 --- a/projects/plugins/wpcomsh/lib/class.color.php +++ b/projects/plugins/wpcomsh/lib/class.color.php @@ -8,4 +8,6 @@ // phpcs:ignoreFile WordPress.Files.FileName.NotHyphenatedLowercase // Dummy comment to make phpcs happy. -require_once JETPACK__PLUGIN_DIR . '_inc/lib/class.color.php'; +if ( defined( 'CLASSIC_THEME_HELPER_PLUGIN_DIR') ) { + require_once CLASSIC_THEME_HELPER_PLUGIN_DIR . '_inc/lib/class.color.php'; +} diff --git a/projects/plugins/wpcomsh/lib/tonesque.php b/projects/plugins/wpcomsh/lib/tonesque.php index 93bf7affdc22a..b1a1eddf7d9e3 100644 --- a/projects/plugins/wpcomsh/lib/tonesque.php +++ b/projects/plugins/wpcomsh/lib/tonesque.php @@ -6,4 +6,6 @@ */ // Dummy comment to make phpcs happy. -require_once JETPACK__PLUGIN_DIR . '_inc/lib/tonesque.php'; +if ( defined( 'CLASSIC_THEME_HELPER_PLUGIN_DIR' ) ) { + require_once CLASSIC_THEME_HELPER_PLUGIN_DIR . '_inc/lib/tonesque.php'; +}