Skip to content

Commit 8c20c38

Browse files
authored
Merge pull request #84 from humanmade/bump-version
Bump version
2 parents d860a75 + 347fd54 commit 8c20c38

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,16 @@ One way to get a list of redirect target domains is to run the WP-CLI command: `
1515

1616
## Attributions
1717
Props for the data storage approach to VIP's [WPCOM Legacy Redirector](https://github.com/Automattic/WPCOM-Legacy-Redirector).
18+
19+
## Contributing
20+
21+
### Before tagging a release
22+
23+
* Update the [version string on line 8](hm-redirects.php).
24+
25+
### Running tests
26+
Currently the plugin's automated tests [run against PHP 7.4 and WP 5.8](.github/workflows/phpunit.yml). PHPUnit doesn't need to be installed, however:
27+
```
28+
composer install
29+
docker run --rm -e WP_VERSION=5.8 -v $PWD:/code humanmade/plugin-tester
30+
```

hm-redirects.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @package hm-redirects
66
*
77
* Description: Handles redirects in a scalable manner.
8-
* Version: 0.7.2
8+
* Version: 0.7.3
99
* Author: Human Made Limited
1010
* Author URI: https://humanmade.com/
1111
* Text Domain: hm-redirects

tests/class-utilities-test.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ public function provider_ascii_urls() {
7676
// Relative URL, without a leading slash.
7777
[ 'only/the/path', '/only/the/path' ],
7878
// Relative URL, with query parameter.
79-
[ '/a/path/?with=queryparam', '/a/path' ],
79+
[ '/a/path?with=queryparam', '/a/path' ],
80+
// Relative URL ending in forward-slash, with query parameter.
81+
[ '/a/path/?with=queryparam', '/a/path/' ],
8082
// Relative URL, with query parameter using brackets.
8183
[ '/a/path/withbrakets?foo[bar]=baz', '/a/path/withbrakets' ],
8284
// Relative URL, with encoded spaces.

0 commit comments

Comments
 (0)