Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Commit

Permalink
fix(injector): remove the check for the REST API base slug of cpt's
Browse files Browse the repository at this point in the history
  • Loading branch information
DAreRodz committed Oct 23, 2018
1 parent 3d56072 commit 55b21d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion injector/wp-pwa-injector.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}
} elseif (is_post_type_archive()) {
$queriedObject = get_queried_object();
if ((isset($queriedObject->show_in_rest)) && (isset($queriedObject->rest_base)) &&
if ((isset($queriedObject->show_in_rest)) &&
($queriedObject->show_in_rest === true)) {
$type = 'latest';
$id = $queriedObject->name;
Expand Down

0 comments on commit 55b21d0

Please sign in to comment.