fix: permissions check taxonomy index undefined
This commit is contained in:
parent
177cb2e0d0
commit
319a621a95
|
@ -569,6 +569,8 @@ class REST_Items_Controller extends REST_Controller {
|
|||
private function get_items_permissions_check_for_taxonomy($taxonomies) {
|
||||
|
||||
foreach ($taxonomies as $tax) {
|
||||
if( !isset($tax['taxonomy']) )
|
||||
return false;
|
||||
$taxonomy = \tainacan_taxonomies()->fetch_by_db_identifier( $tax['taxonomy'] );
|
||||
|
||||
if( $taxonomy instanceof Entities\Taxonomy ) {
|
||||
|
|
Loading…
Reference in New Issue