Skip to content

Commit 5a169d0

Browse files
authored
Merge pull request #40 from PRX/fix/tw-endpoint-helper-404-when-no-rest-route
fix: TW Endpoint Helper 404 when no rest route found for slug
2 parents 8088f0d + c269d0d commit 5a169d0

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ Closes #[ISSUE_ID]
55
## To Review
66

77
- [ ] Checkout Branch.
8-
- [ ] Start Lando, if it is not already running: `lando start`.
9-
- [ ] (Optional) Update database:
10-
- Delete any `.sql.gz` files from your `./reference` directory.
11-
- Run `terminus backup:get --element=db --to=./reference -- the-world.live`.
12-
- Run `npm run refresh`.
13-
- [ ] Go to http://dev-the-world.lndo.site/.
8+
- [ ] If you have a dev server already running, shut it down: `docker compose down`.
9+
- [ ] Delete the current image: `docker rmi the-world-cms-wordpress-wordpress:latest`.
10+
- [ ] Start up dev server: `docker compose up`.
11+
- [ ] Go to http://localhost:8090/wp-login.php.
1412

1513
> ...then...
1614

wp-content/plugins/tw-endpoint-helper/tw-endpoint-helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function peh_route_alias( WP_REST_Request $request ) {
182182
}
183183
} else {
184184

185-
$response['status'] = 500;
185+
$response['status'] = 404;
186186
}
187187
}
188188
} else {

0 commit comments

Comments
 (0)