From 41f3afbb906bcda8f933194e95414afa6ea69539 Mon Sep 17 00:00:00 2001 From: Samiff Date: Wed, 11 Jan 2023 14:21:04 -0700 Subject: [PATCH] Adjust phpcs:ignore usage for wpcom compat (#28304) --- .../changelog/update-patch-phpcs-usage-for-wpcom-compat | 5 +++++ .../jetpack/modules/simple-payments/simple-payments.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 projects/plugins/jetpack/changelog/update-patch-phpcs-usage-for-wpcom-compat diff --git a/projects/plugins/jetpack/changelog/update-patch-phpcs-usage-for-wpcom-compat b/projects/plugins/jetpack/changelog/update-patch-phpcs-usage-for-wpcom-compat new file mode 100644 index 0000000000000..3e238c5456db9 --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-patch-phpcs-usage-for-wpcom-compat @@ -0,0 +1,5 @@ +Significance: patch +Type: other +Comment: Move a phpcs ignore so that wpcom doesn't throw linting error. + + diff --git a/projects/plugins/jetpack/modules/simple-payments/simple-payments.php b/projects/plugins/jetpack/modules/simple-payments/simple-payments.php index 9485e95db1655..1fd9ced244682 100644 --- a/projects/plugins/jetpack/modules/simple-payments/simple-payments.php +++ b/projects/plugins/jetpack/modules/simple-payments/simple-payments.php @@ -93,7 +93,7 @@ private function register_scripts_and_styles() { * * @see https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/add-paypal-button/ */ - wp_register_script( + wp_register_script( // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion -- Ignored here instead of on the $ver param line since wpcom isn't in sync with ruleset changes in: https://github.com/Automattic/jetpack/pull/28199 'paypal-checkout-js', 'https://www.paypalobjects.com/api/checkout.js', array(),