Skip to content

Commit 8fdcb84

Browse files
committed
Merge branch 'hotfix/cpt-by-slug'
2 parents db0f004 + 9b15fec commit 8fdcb84

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

better-wp-endpoints.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Better WordPress Endpoints
44
Plugin URI: https://github.com/factor1/better-wp-endpoints/
55
Description: Serves up slimmer WordPress Rest API endpoints, with some great enhancements.
6-
Version: 0.1.14
6+
Version: 0.1.15
77
Author: Eric Stout, Factor1 Studios
88
Author URI: https://factor1studios.com/
99
License: GPL3

includes/get_cpt_by_slug.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function bwe_build_single_cpt_endpoints_slug() {
3030
// WP_Query Arguments
3131
$args = array(
3232
'post_type' => $cpt,
33-
'p' => $post_slug,
33+
'name' => $post_slug,
3434
);
3535

3636
// The Query

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "better-wp-endpoints",
3-
"version": "0.1.14",
3+
"version": "0.1.15",
44
"description": "Serves up slimmer WordPress Rest API endpoints.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)