Skip to content

Commit

Permalink
Merge branch 'hotfix/cpt-by-slug'
Browse files Browse the repository at this point in the history
  • Loading branch information
erwstout committed Nov 21, 2017
2 parents db0f004 + 9b15fec commit 8fdcb84
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion better-wp-endpoints.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Better WordPress Endpoints
Plugin URI: https://github.com/factor1/better-wp-endpoints/
Description: Serves up slimmer WordPress Rest API endpoints, with some great enhancements.
Version: 0.1.14
Version: 0.1.15
Author: Eric Stout, Factor1 Studios
Author URI: https://factor1studios.com/
License: GPL3
Expand Down
2 changes: 1 addition & 1 deletion includes/get_cpt_by_slug.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function bwe_build_single_cpt_endpoints_slug() {
// WP_Query Arguments
$args = array(
'post_type' => $cpt,
'p' => $post_slug,
'name' => $post_slug,
);

// The Query
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "better-wp-endpoints",
"version": "0.1.14",
"version": "0.1.15",
"description": "Serves up slimmer WordPress Rest API endpoints.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 8fdcb84

Please sign in to comment.