Skip to content

Commit 6edc805

Browse files
authored
Merge pull request #52 from Automattic/release/1.5.0
2 parents 0167fb7 + 2a80845 commit 6edc805

26 files changed

+3161
-865
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,28 @@ on:
44
types: [released]
55
# Allow manual triggering of the workflow.
66
workflow_dispatch:
7+
8+
permissions: {}
9+
710
jobs:
811
release:
912
name: New release to WordPress.org
1013
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
1116
steps:
1217
- name: Checkout
13-
uses: actions/checkout@v4
18+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
19+
with:
20+
persist-credentials: false
1421

1522
- name: Install SVN (Subversion)
1623
run: |
1724
sudo apt-get update
1825
sudo apt-get install subversion
1926
2027
- name: Push to WordPress.org
21-
uses: 10up/action-wordpress-plugin-deploy@stable
28+
uses: 10up/action-wordpress-plugin-deploy@54bd289b8525fd23a5c365ec369185f2966529c2 # 2.3.0
2229
env:
2330
SLUG: rewrite-rules-inspector
2431
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}

.wordpress-org/banner-1544x500.png

74.1 KB
Loading

.wordpress-org/banner-772x250.png

24.8 KB
Loading

.wordpress-org/screenshot-1.png

-31.3 KB
Loading

.wordpress-org/screenshot-2.png

221 KB
Loading

.wordpress-org/screenshot-3.png

156 KB
Loading

.wordpress-org/screenshot-4.png

259 KB
Loading

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,40 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.5.0] - 2025-10-14
8+
9+
### Added
10+
11+
- feat: Add permastructs table with descriptions and structures by @GaryJones in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/48
12+
- feat: Implement URL testing feature by @GaryJones in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/51
13+
14+
### Fixed
15+
16+
- fix: undefined $match_path variable by @GaryJones in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/47
17+
18+
### Maintenance
19+
20+
- CI: Refresh deploy.yml by @GaryJones in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/43
21+
- Composer: Update composer/installers by @GaryJones in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/44
22+
- Add Rector by @GaryJones in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/45
23+
- Update GitHub action to install SVN before deploy to WordPress.org by @raamdev in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/46
24+
- refactor: Extract inline CSS and improve admin interface styling by @GaryJones in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/49
25+
- refactor: Restructure plugin architecture and enhance service organization by @GaryJones in https://github.com/Automattic/Rewrite-Rules-Inspector/pull/50
26+
727
## [1.4.0] - 2024-05-21
28+
829
- Increase minimum PHP version to 7.4.
930
- Increase minimum WordPress version to 5.9.
1031
- Forcibly delete rules cache on flush.
1132
- Fix escaping of URL for the Reset button.
1233

1334
## [1.3.1] - 2021-05-18
35+
1436
- Fix WordPress.org banner image filename.
1537
- Load text domain, to allow translations.
1638

1739
## [1.3.0] - 2021-05-18
40+
1841
- Add the count of missing rules.
1942
- Add license file, changelog, .editorconfig file, PHPCS config file, and GitHub Action to deploy to WordPress.org.
2043
- Add Composer support.
@@ -28,22 +51,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2851
- Remove call to deprecated `screen_icon()` function.
2952

3053
## [1.2.1] - 2013-09-19
54+
3155
- Fix for strict standards error in declaration of `Rewrite_Rules_Inspector_List_Table::single_row()`. Props [simonhampel](https://github.com/simonhampel).
3256

3357
## [1.2] - 2013-01-16
58+
3459
- Modify the rewrite rule source with a filter. Props [jeremyfelt](https://github.com/jeremyfelt).
3560

3661
## [1.1] - 2012-09-25
62+
3763
- Add support for route matching when WordPress lives in a subdirectory. Props [dbernar1](https://github.com/dbernar1).
3864
- Display a success message after flushing the rewrite rules.
3965

4066
## [1.0] - 2012-05-09
67+
4168
- Initial public release!
4269
- View a list of all the rewrite rules.
4370
- See which rewrite rules match a given URL, and the priorities they match in.
4471
- Filter by different sources of rewrite rules.
4572
- An error message appears if rewrite rules are missing in the database.
4673

74+
[1.5.0]: https://github.com/Automattic/Rewrite-Rules-Inspector/compare/1.4.0...1.5.0
4775
[1.4.0]: https://github.com/Automattic/Rewrite-Rules-Inspector/compare/1.3.1...1.4.0
4876
[1.3.1]: https://github.com/Automattic/Rewrite-Rules-Inspector/compare/1.3.0...1.3.1
4977
[1.3.0]: https://github.com/Automattic/Rewrite-Rules-Inspector/compare/1.2.1...1.3.0

README.md

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Rewrite Rules Inspector
22

3-
Stable tag: 1.4.0
3+
Stable tag: 1.5.0
44
Requires at least: 5.9
5-
Tested up to: 6.5
5+
Tested up to: 6.8
66
Requires PHP: 7.4
77
License: GPLv2 or later
88
Tags: rewrite rules, tools
@@ -12,9 +12,31 @@ A simple admin tool for inspecting rewrite rules.
1212

1313
## Description
1414

15-
A simple WordPress admin tool for inspecting rewrite rules. View a listing of all your rewrite rules, see which rewrite rules match a given URL (and the priorites they match in), or filter by different sources of rewrite rules. Perform a soft flush of your rewrite rules to regenerate them.
15+
A simple WordPress admin tool for inspecting rewrite rules. View a listing of all your rewrite rules, see which rewrite rules match a given URL (and the priorities they match in), or filter by different sources of rewrite rules. Perform a soft flush of your rewrite rules to regenerate them.
1616

17-
Originally developed for clients hosted at [WordPress VIP](https://wpvip.com/), we thought it would be useful for development environments, etc. too. Feel free to [fork the plugin in GitHub](https://github.com/Automattic/Rewrite-Rules-Inspector/) — pull requests are always welcome. Hit us with feedback, questions, bug reports, and feature requests in the GitHub issues.
17+
[Developed on GitHub](https://github.com/Automattic/Rewrite-Rules-Inspector/) — pull requests are always welcome. Please leave feedback, questions, bug reports, and feature requests in the GitHub issues.
18+
19+
### Where to find it
20+
21+
Go to `Tools → Rewrite Rules` in the WordPress admin.
22+
23+
### URL Tester
24+
25+
Quickly test any URL (or path) against your site's rewrite rules:
26+
27+
- See whether the URL would be a **404** or which rule would match first (the one WordPress uses).
28+
- View the list of **all matching rules**, in match priority order.
29+
- Inspect the **query variables** extracted from the match and the resulting **final query** WordPress would run.
30+
31+
Works with full URLs or paths and automatically handles sites installed in a subdirectory.
32+
33+
### Permastructs
34+
35+
Browse a table of all **permastructs** that WordPress is aware of, including:
36+
37+
- **Name** — the permastruct key (e.g. for posts, taxonomies, authors).
38+
- **Structure** — the permalink structure pattern used to generate rules.
39+
- **Description** — a human-friendly summary of what the permastruct controls.
1840

1941
## Installation
2042

@@ -27,20 +49,26 @@ Originally developed for clients hosted at [WordPress VIP](https://wpvip.com/),
2749

2850
### Install the plugin manually
2951

30-
1. Download the plugin from WordPress.org or get the latest release from our [Github Releases page](https://github.com/automattic/Rewrite-Rules-Inspector/releases).
52+
1. Download the plugin from WordPress.org or get the latest release from our [GitHub Releases page](https://github.com/automattic/Rewrite-Rules-Inspector/releases).
3153
1. Unzip the downloaded archive.
3254
1. Upload the entire `rewrite-rules-inspector` folder to your `/wp-content/plugins` directory.
3355
1. Visit the Plugins page from your WordPress dashboard and look for the newly installed plugin.
3456
1. Click "Activate" to activate the plugin on your site.
3557

3658
## Screenshots
3759

38-
1. See which rewrite rules match a given URL, and the priorities they match in.
60+
1. See all of the rewrite rules and flush them or download them.
3961
![The main screen showing the rewrite rules](.wordpress-org/screenshot-1.png)
4062

41-
2. An error message appears if rewrite rules are missing in the database
42-
![One rule is highlighted in red as it is missing](.wordpress-org/screenshot-2.png)
43-
63+
2. Test a URL against the rules to see which one(s) would match, and the priority they would match in.
64+
![Showing the URL test results](.wordpress-org/screenshot-2.png)
65+
66+
3. Limit rules and URL testing results down to specificrule sources.
67+
![Showing the URL test results when no rules from that source match](.wordpress-org/screenshot-3.png)
68+
69+
4. See which permastructs WordPress knows about.
70+
![Showing the permastructs table](.wordpress-org/screenshot-4.png)
71+
4472
## Changelog
4573

4674
See the [change log](https://github.com/automattic/Rewrite-Rules-Inspector/blob/master/CHANGELOG.md).

0 commit comments

Comments
 (0)