Skip to content

Commit

Permalink
Adjust phpcs:ignore usage for wpcom compat (#28304)
Browse files Browse the repository at this point in the history
  • Loading branch information
samiff authored Jan 11, 2023
1 parent 90f7b43 commit 41f3afb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: other
Comment: Move a phpcs ignore so that wpcom doesn't throw linting error.


Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 41f3afb

Please sign in to comment.