Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Commit

Permalink
3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Aug 5, 2021
1 parent 524c411 commit 9d235bf
Show file tree
Hide file tree
Showing 8 changed files with 305 additions and 241 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C
## [Unreleased][unreleased]
-

## [3.0.0] - 2021-08-05
- Updated to `pronamic/wp-pay-core` version `3.0.0`.
- Updated to `pronamic/wp-money` version `2.0.0`.
- Changed `TaxedMoney` to `Money`, no tax info.
- Switched to `pronamic/wp-coding-standards`.

## [2.3.2] - 2021-01-19
- Fixed using unknown classes.

Expand Down Expand Up @@ -50,7 +56,8 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C
## 1.0.0 - 2015-01-20
- First release.

[unreleased]: https://github.com/wp-pay-extensions/event-espresso-legacy/compare/2.3.2...HEAD
[unreleased]: https://github.com/wp-pay-extensions/event-espresso-legacy/compare/3.0.0...HEAD
[3.0.0]: https://github.com/wp-pay-extensions/event-espresso-legacy/compare/2.3.1...3.0.0
[2.3.2]: https://github.com/wp-pay-extensions/event-espresso-legacy/compare/2.3.1...2.3.2
[2.3.1]: https://github.com/wp-pay-extensions/event-espresso-legacy/compare/2.3.0...2.3.1
[2.3.0]: https://github.com/wp-pay-extensions/event-espresso-legacy/compare/2.2.1...2.3.0
Expand Down
12 changes: 4 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,16 @@
},
"require": {
"php": ">=5.6.20",
"wp-pay/core": "^2.6"
"wp-pay/core": "^3.0"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.4",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
"php-coveralls/php-coveralls": "^2.4",
"phpcompatibility/php-compatibility": "^9.1",
"phpcompatibility/phpcompatibility-wp": "^2.0",
"phpmd/phpmd": "^2.7",
"phpunit/phpunit": "^5.7 || ^6.0",
"roots/wordpress": "^5.6",
"squizlabs/php_codesniffer": "^3.4",
"wp-coding-standards/wpcs": "^2.3",
"wp-phpunit/wp-phpunit": "^5.6"
"pronamic/wp-coding-standards": "^1.0",
"roots/wordpress": "^5.8",
"wp-phpunit/wp-phpunit": "^5.8"
},
"scripts": {
"coveralls": "vendor/bin/php-coveralls -v",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "event-espresso-legacy",
"version": "2.3.2",
"version": "3.0.0",
"description": "Event Espresso (legacy 3.1) driver for the WordPress payment processing library",
"repository": {
"type": "git",
Expand Down
26 changes: 5 additions & 21 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
@@ -1,34 +1,14 @@
<?xml version="1.0"?>

<ruleset name="WordPress Pay Event Espresso legacy rules">
<config name="minimum_supported_wp_version" value="4.7" />

<config name="testVersion" value="5.6-" />

<file>.</file>

<arg name="colors"/>
<arg name="extensions" value="php" />
<arg name="parallel" value="8" />
<arg value="sp" />

<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>tests/bootstrap.php</exclude-pattern>
<exclude-pattern>tests/wp-config.php</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>wordpress/*</exclude-pattern>
<exclude-pattern type="relative">^wp-content/*</exclude-pattern>

<rule ref="PHPCompatibilityWP" />

<rule ref="WordPress">
<exclude name="Generic.Files.LowercasedFilename.NotFound" />

<rule ref="PronamicWP">
<exclude name="Squiz.Commenting" />

<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />

<exclude name="WordPress.PHP.DiscouragedPHPFunctions.serialize_unserialize" />

<exclude name="WordPress.Security.NonceVerification.Recommended" />
Expand All @@ -37,6 +17,10 @@
<exclude name="WordPress.VIP.FileSystemWritesDisallow.FileWriteDetected" />
<exclude name="WordPress.VIP.RestrictedFunctions.wp_redirect_wp_redirect" />
<exclude name="WordPress.VIP.SuperGlobalInputUsage.AccessDetected" />

<exclude name="WordPressVIPMinimum.Functions.RestrictedFunctions.file_ops_touch" />

<exclude name="WordPressVIPMinimum.Hooks.AlwaysReturnInFilter.MissingReturnStatement" />
</rule>

<rule ref="WordPress.Security.NonceVerification.NoNonceVerification">
Expand Down
4 changes: 0 additions & 4 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
</whitelist>
</filter>

<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>

<php>
<env name="WP_PHPUNIT__TESTS_CONFIG" value="tests/wp-config.php"/>
</php>
Expand Down
2 changes: 1 addition & 1 deletion src/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public static function display_gateway( $payment_data ) {
</h3>

<div class="event_espresso_form_wrapper">
<form method="post" action="<?php echo esc_attr( EventEspressoHelper::get_notify_url( $payment_data ) ); ?>">
<form method="post" action="<?php echo \esc_url( EventEspressoHelper::get_notify_url( $payment_data ) ); ?>">
<?php

// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
Expand Down
64 changes: 34 additions & 30 deletions vendor-bin/phpstan/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9d235bf

Please sign in to comment.