File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff 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
1717Props 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+ ```
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments