Skip to content

Commit

Permalink
Wpcomsh: update path to Jetpack Color & Tonesque
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieur-z committed Jul 25, 2024
1 parent 8bd7416 commit 0f9a726
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions projects/plugins/wpcomsh/.phan/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
4 changes: 3 additions & 1 deletion projects/plugins/wpcomsh/lib/class.color.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
4 changes: 3 additions & 1 deletion projects/plugins/wpcomsh/lib/tonesque.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

0 comments on commit 0f9a726

Please sign in to comment.